private static void initTableLevelLockCache(long evictionTimeout) {
    if (commitLockCache == null) {
      synchronized (MetastoreLock.class) {
        if (commitLockCache == null) {
          commitLockCache =
                  Caffeine.newBuilder()
                          .expireAfterAccess(evictionTimeout, TimeUnit.MILLISECONDS)
                          .build();
        }
      }
    }
  }
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