for reentrant, test whether we are currently in the synchronized section. for non reentrant, it returns the locked status.
bool get inLock;