@Override
  public void setIndexManager(IndexManager indexManager) {
    checkReadiness();
    this.indexManager = indexManager;
  }
This method call is guarded by imSync lock created for each region. Set IndexManger for region.
geode-core/src/main/java/org/apache/geode/internal/cache/AbstractRegion.java