Test for the lock