HIVE-4761 : ZooKeeperHiveLockManage.unlockPrimitive has race condition with threads (Brock Noland via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1495055 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit d372457395aad3218d6d2136a3a1c02372bac742)
HIVE-4733 : HiveLockObjectData is not compared properly (Navis via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1500569 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 4a19edb5fd69bf6438e682a15d9a6ceacbc2b929)
HIVE-5575: ZooKeeper connection closed when unlock with retry (Chun Chen via Brock Noland)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1533511 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 3034883d6da320d4b237c068d5a0e16176818b59)