private void executeCompletionCleanup(Procedure<Env> proc) {
    if (proc.hasLock()) {
      releaseLock(proc, true);
    }
  }
do execute defined in procedure and then update store or remove completely in case it is a
child.

@param procedure procedure
@return procedure lock state
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java