public static IMetaStoreClient newSynchronizedClient(IMetaStoreClient client) {
    return (IMetaStoreClient)
        Proxy.newProxyInstance(
            HiveMetaStoreClient.class.getClassLoader(),
            new Class[] {IMetaStoreClient.class},
            new SynchronizedHandler(client));
  }
Creates a synchronized wrapper for any {@link IMetaStoreClient}. This may be used by
multi-threaded applications until we have fixed all reentrancy bugs.

@param client unsynchronized client
@return synchronized client
amoro-format-mixed/amoro-mixed-trino/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java