added minor modification to the LockState lib for atomic locks