[fabric-zookeeper] fix TreeCache problem which runs into a loop in some conditions