public boolean isLockedWhenLoading() {
    return lockedWhenLoading;
  }
Can only be called when restarting, before the procedure actually being executed, as after we
actually call the {@link #doAcquireLock(Object, IProcedureStore)} method, we will reset {@link
#lockedWhenLoading} to false.

<p>Now it is only used in the ProcedureScheduler to determine whether we should put a Procedure
in front of a queue.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/Procedure.java