public AtomicReference<SubscriptionInfo> lock() {
    coordinatorLock.lock();
    subscriptionInfoHolder = new AtomicReference<>(subscriptionInfo);
    return subscriptionInfoHolder;
  }
Lock the {@link SubscriptionInfo} coordinator.

@return the {@link SubscriptionInfo} holder, which can be used to get the {@link
    SubscriptionInfo}. Wait until lock is acquired
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/subscription/SubscriptionCoordinator.java