public void setFlagForIndexCreationThread(boolean value) {
    isIndexCreator.set(value ? Boolean.TRUE : null);
  }
Use ONLY imSync for IndexManager get and set.

@return {@link IndexManager} lock.
geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegion.java