Add a timer signal to the lock operation, such that it doesn't block forever