Return the current state of the lock.
This function will never return the SharedWithExclusivePending state.
see LockState
See Implementation
Return the current state of the lock.
This function will never return the SharedWithExclusivePending state.