@Override
  public void close() {
    if (!closed) {
      if (locks != null) {
        cleanup();
        return;
      }
      closed = true;
      for (TXRegionState r : regions.values()) {
        r.close();
      }
    }
  }
Note that cleanup does more than is needed in this method. This method only needs to do stuff
that is required when a Cache close is done and we have txs that are still in progress.
Currently the only thing that is needed is to decrement off-heap refcounts since off-heap
memory lives after a cache close.
geode-core/src/main/java/org/apache/geode/internal/cache/TXState.java