@Override
    public void run() {
      try {
        hmsClients.run(
            client -> {
              client.heartbeat(0, lockId);
              return null;
            });
      } catch (TException | InterruptedException e) {
        this.encounteredException = e;
        throw new CommitFailedException(e, "Failed to heartbeat for lock: %d", lockId);
      }
    }
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