Avoid concurrent access on thrift client.

See CDK-328. Until we can get a non-cached HMS client (hive 0.12) we should deal with the fact that HMS client isn't thread safe.
This shouldn't hurt performance in most cases, while definitely fixing the use-case of using multiple writers concurrently (on partitioned datasets backed by hive).