Fix warnings in HiveMetastoreClientFactory
Move metastore stats to metastore package