STORM-113: making thrift usage thread safe for local cluster