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