First, it is not mandatory to use a lock at all. Second, you can use any lock you want but, if the TSA decide to open your bag, they'll just break your lock if it's not one they can open with their master key. Note that they accept no liability for damage to your lock or your bag caused by them forcing a non-TSA lock.