return the lock state