public AtomicReference<PipeTaskInfo> lock() {
    pipeTaskCoordinatorLock.lock();
    pipeTaskInfoHolder = new AtomicReference<>(pipeTaskInfo);
    return pipeTaskInfoHolder;
  }
Lock the pipe task coordinator.

@return the {@link PipeTaskInfo} holder, which can be used to get the {@link PipeTaskInfo}.
    Wait until lock is acquired
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/coordinator/task/PipeTaskCoordinator.java