@Override
    public void unlock() {
      try {
        ReplyProcessor21.forceSevereAlertProcessing();
        getLockService().unlock(key);
        if (!entries.containsKey(key)) {
          getLockService().freeResources(key);
        }
      } catch (IllegalStateException ex) {
        lockCheckReadiness();
        throw ex;
      } finally {
        ReplyProcessor21.unforceSevereAlertProcessing();
      }
    }
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