add implementations for instantLock, tryLock, and instantTryLock
refactor lock(...)
remove references to LockManager.IS_DEBUG_MODE
4 files changed