Fix for a race condition in LeaderLatch which resulted in spurious nodes being set in Zookeeper