Without seeing your sequence it is difficult to say what exactly is going wrong. Basically, to use a TestStand lock, you create it with a name and lock it using the name before the critical section of your code. When you lock a lock, you specify a lifetime for which when it expires the lock will automatically be unlocked (I believe the default lifetime is until the sequence finishes executing). In addition you can perform an EarlyUnlock operation to release the lock before the lock lifetime expires.
Another way of using locks is to use the synchronization tab of the step properties dialog on any step. You give it a name of a lock and it will automatically create and lock the lock before calling the step's code module and then automatically unlock it after the step compl
etes.
-Doug