void doUnlock(HiveLock lock) {
    if (lock != null) {
      try {
        lock.unlock();
      } catch (Exception e) {
        LOG.warn("Failed to unlock {}.{}", database, tableName, e);
      }
    }
  }
TODO we should be able to extract some more commonalities to BaseMetastoreTableOperations to
avoid code duplication between this class and Metacat Tables.
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java