Introduced _checkLock() for readability