public boolean tryLock(Procedure<?> procedure) {
    if (lockOwnerProcedure == null) {
      lockOwnerProcedure = procedure;
      return true;
    }
    return procedure.getProcId() == lockOwnerProcedure.getProcId();
  }
Lock Queue for procedure of the same type
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/scheduler/LockQueue.java