code: protected void handleLockExpiry(SharedSessionContractImplementor session, Object key, Lockable lock) {
          long ts = region.nextTimestamp() + region.getTimeout();
          // create new lock that times out immediately
          Lock newLock = new Lock(ts, uuid, nextLockId.getAndIncrement(), null);
          newLock.unlock(ts);
          region.put(session, key, newLock);
      }
docs: Handle the timeout of a previous lock mapped to this key