@Override
    public void lockInterruptibly() throws InterruptedException {
      try {
        boolean locked = basicTryLock(-1, TimeUnit.MILLISECONDS, true);
        if (!locked) {
          lockCheckReadiness();
        }
        Assert.assertTrue(locked, "Failed to acquire DistributedLock");
      } catch (IllegalStateException ex) {
        lockCheckReadiness();
        throw ex;
      }
    }
Returns the lock timeout value to use for DistributedLock and RegionDistributedLock. -1 is
supported as a lock that never times out.
geode-core/src/main/java/org/apache/geode/internal/cache/DistributedRegion.java