sbool isLocked(Lock lock) { ret lock != null && ((ReentrantLock) lock).isLocked(); }