Hive-4141 InspectorFactories use static HashMaps which fail in concurrent modification (Brock Noland via egc)

Submitted by: Brock Noland
Reviewed by: Edward Capriolo
Approved by: Edward Capriolo

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1456756 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4075 : TypeInfoFactory is not thread safe and is access by multiple threads.
Merge branch 'shark-0.9' of github.com:amplab/hive into shark-0.9