public void cancel() {
      if (future != null) {
        future.cancel(false);
      }
    }
Search for the locks using HMSClient.showLocks identified by the agentInfo. If the lock is
there, then a {@link LockInfo} object is returned. If the lock is not found <code>null</code>
is returned.

@return The {@link LockInfo} for the found lock, or <code>null</code> if nothing found
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/MetastoreLock.java