boolean tryLock(Procedure<?> proc) {
    return tryLock0(proc);
  }
TryLock by a procedure. You can release the lock in another thread.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateNodeLock.java