protected void runWhileLockedForCacheModification(Runnable r) {
    final boolean locked = getOwner().lockWhenRegionIsInitializing();
    try {
      r.run();
    } finally {
      if (locked) {
        getOwner().unlockWhenRegionIsInitializing();
      }
    }
  }
@return true if put created a new entry; false if it updated an existing one.
geode-core/src/main/java/org/apache/geode/internal/cache/map/AbstractRegionMapPut.java