@VisibleForTesting
  boolean doLockDiskStore(String diskStoreName) {
    CountDownLatch countDownLatch =
        diskStoreLatches.putIfAbsent(diskStoreName, new CountDownLatch(1));
    if (countDownLatch != null) {
      try {
        countDownLatch.await();
        return false;
      } catch (InterruptedException e) {
        throw new InternalGemFireError(e);
      }
    }
    return true;
  }
If the disk store is not associated with a {@code CountDownLatch},
constructs a {@code CountDownLatch} with count one, and associate it with the disk store;
otherwise wait until the associated {@code CountDownLatch} has counted down to zero.

@param diskStoreName the name of the disk store
@return {@code true} if it does not call {@code CountDownLatch.await()};
        {@code false} otherwise.
geode-core/src/main/java/org/apache/geode/internal/cache/GemFireCacheImpl.java