public boolean isLocked() {
        return lock.isLocked();
    }
Queries if this lock is held by any thread. This method is
designed for use in monitoring of the system state,
not for synchronization control.

@return {@code true} if any thread holds this lock and {@code false} otherwise
@see ReentrantLock#isLocked()
xmppserver/src/main/java/org/jivesoftware/util/AutoCloseableReentrantLock.java