static void cleanupMetadataAndUnlock(
          FileIO io,
          BaseMetastoreOperations.CommitStatus commitStatus,
          String metadataLocation,
          HiveLock lock) {
    try {
      cleanupMetadata(io, commitStatus.name(), metadataLocation);
    } finally {
      lock.unlock();
    }
  }
@deprecated since 1.6.0, will be removed in 1.7.0; Use {@link #storageDescriptor(Schema,
    String, boolean)} instead
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveOperationsBase.java