private void lockRoot() {
      if (!U.compareAndSwapInt(this, LOCKSTATE, 0, WRITER)) {
        contendedLock(); // offload to separate method
      }
    }
Acquires write lock for tree restructuring.
geode-core/src/main/java/org/apache/geode/internal/concurrent/CompactConcurrentHashSet2.java