boolean hasWaitingRequests(Object name) {
    DLockGrantToken grant = getGrantToken(name);
    if (grant == null) {
      return false;
    }
    synchronized (grant) {
      return grant.hasWaitingRequests();
    }
  }
TEST HOOK: Allows testing to determine if there are waiting requests for a lock.
<p>
Synchronizes on grantTokens and the grant token if one exists.

@param name the lock to check for waiting requests for
@return true if the named lock has requests waiting to acquire it
geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockGrantor.java