default String describeLockStatus() {
    ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
      .append("exclusiveLock", hasExclusiveLock());
    if (hasExclusiveLock()) {
      builder.append("exclusiveLockProcIdOwner", getExclusiveLockProcIdOwner());
    }
    builder.append("sharedLockCount", getSharedLockCount());
    return builder.build();
  }
Get the number of procedures which hold the shared lock.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/LockStatus.java