@Override
  public Function getFunction(String dbName, String funcName) throws TException {
    Function f = client.get_function(dbName, funcName);
    return fastpath ? f : deepCopy(f);
  }
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