@Override
  public void lock() {
    checkForRentry();
    super.lock();
  }
@throws IllegalStateException if the lock is already held by the current thread
geode-core/src/main/java/org/apache/geode/internal/util/concurrent/StoppableNonReentrantLock.java