Make sure mutexes and condition variables are properly initialized and destroyed
Make sure mutexes and condition variables are properly initialized and destroyed

git-svn-id: 488b3bf40f260ac8d5bff5f7b2d8e19ee7724ae8@670847 13f79535-47bb-0310-9956-ffa450edef68

isdom/zookeeper,softliumin/zookeeper,Giten2004/zookeeper,mlizhenbin/zookeeper,yhj630520/zookeeper,ewhauser/zookeeper,mlc0202/zookeeper,zhuochenKIDD/zookeeper,airtimemedia/zookeeper,Randgalt/zookeeper,wangcan2014/zookeeper,ouyangkongtong/zookeeper,rakeshadr/zk-branch-3.4,racker/zookeeper,rkhmelichek/zookeeper,zhuochenKIDD/zookeeper,ExactTargetDev/zookeeper,leesir/zookeeper,fengjingchao/zookeeper,dongming/zookeeper,SuperLong1210/zookeeper-1,p2y/zookeeper,cloudera/zookeeper,mapr/zookeeper,wangcan2014/zookeeper,freezhan/zookeeper,zhuochenKIDD/zookeeper,ExactTargetDev/zookeeper,cnauroth/zookeeper,Randgalt/zookeeper,mlc0202/zookeeper,osrg/zookeeper,ch3lo/zookeeper,airtimemedia/zookeeper,jango2015/zookeeper,cnauroth/zookeeper,mikeqian/zookeeper,rahulkurup/zookeeper,kmiku7/zookeeper,likaiwalkman/zookeeper,rakeshadr/zk-branch-3.4,kmiku7/zookeeper,dockmob/zookeeper,pengweiqhca/zookeeper,ch3lo/zookeeper,nashuiliang/zookeeper,hongchaodeng/zookeeper,Giten2004/zookeeper,myhongkongzhen/zookeeper,AkihiroSuda/zookeeper,arijitvt/zookeeper,fengjingchao/zookeeper,racker/zookeeper,anchel/zookeeper,p2y/zookeeper,xujianhai/zookeeper,arijitvt/zookeeper,Ormod/zookeeper,p2y/zookeeper,apurtell/zookeeper,mlizhenbin/zookeeper,jango2015/zookeeper,yhj630520/zookeeper,Giten2004/zookeeper,sanjeevtripurari/zookeeper,fengjingchao/zookeeper,kmiku7/zookeeper,hongchaodeng/zookeeper,rgs1/zookeeper,ouyangjie/zookeeper,alibaba/zookeeper,rahulkurup/zookeeper,isdom/zookeeper,ewhauser/zookeeper,rgs1/zookeeper,aeternallife/zookeeper,ewhauser/zookeeper,racker/zookeeper,pengweiqhca/zookeeper,rgs1/zookeeper,Tony-Zhang03/zookeeper,alibaba/zookeeper,gigold/zookeeper,freezhan/zookeeper,dongming/zookeeper,rahulkurup/zookeeper,mlizhenbin/zookeeper,CliffYuan/zookeeper,nashuiliang/zookeeper,mlc0202/zookeeper,chaozh/zookeeper,AkihiroSuda/zookeeper,breed/zookeeper,mlizhenbin/zookeeper,apurtell/zookeeper,ouyangkongtong/zookeeper,dongming/zookeeper,rahulkurup/Apache-Zookeeper,ouyangkongtong/zookeeper,leesir/zookeeper,pengweiqhca/zookeeper,xiaosl/zookeeper,Randgalt/zookeeper,wangcan2014/zookeeper,fengjingchao/zookeeper,ExactTargetDev/zookeeper,nashuiliang/zookeeper,pingpangkuangmo/zookeeper,mlizhenbin/zookeeper,tausten/zookeeper,AkihiroSuda/zookeeper,chaozh/zookeeper,breed/zookeeper,mapr/zookeeper,xiaosl/zookeeper,mlc0202/zookeeper,myhongkongzhen/zookeeper,cloudera/zookeeper,JaredDuCode/zookeeper,mikeqian/zookeeper,mapr/zookeeper,pingpangkuangmo/zookeeper,hongchaodeng/zookeeper,ewhauser/zookeeper,yhj630520/zookeeper,apurtell/zookeeper,rahulkurup/zookeeper,myhongkongzhen/zookeeper,JaredDuCode/zookeeper,QuickClaim/Services,xiaosl/zookeeper,mapr/zookeeper,mapr/zookeeper,SuperLong1210/zookeeper-1,ewhauser/zookeeper,leonardofoderaro/zookeeper,ouyangkongtong/zookeeper,arijitvt/zookeeper,p2y/zookeeper,gigold/zookeeper,gigold/zookeeper,rakeshadr/zookeeper-1,breed/zookeeper,ExactTargetDev/zookeeper,isdom/zookeeper,likaiwalkman/zookeeper,yhj630520/zookeeper,rakeshadr/zk-branch-3.4,xiaosl/zookeeper,gigold/zookeeper,airtimemedia/zookeeper,williamsbdev/zookeeper,apurtell/zookeeper,p2y/zookeeper,kmiku7/zookeeper,wangcan2014/zookeeper,freezhan/zookeeper,shayhatsor/zookeeper,ouyangjie/zookeeper,jango2015/zookeeper,rakeshadr/zookeeper-1,ouyangjie/zookeeper,JaredDuCode/zookeeper,racker/zookeeper,dongming/zookeeper,nashuiliang/zookeeper,shayhatsor/zookeeper,CliffYuan/zookeeper,Tony-Zhang03/zookeeper,isdom/zookeeper,gigold/zookeeper,freezhan/zookeeper,anchel/zookeeper,kmiku7/zookeeper,Ormod/zookeeper,williamsbdev/zookeeper,ouyangkongtong/zookeeper,jango2015/zookeeper,sanjeevtripurari/zookeeper,Ormod/zookeeper,isdom/zookeeper,JaredDuCode/zookeeper,xujianhai/zookeeper,leonardofoderaro/zookeeper,dockmob/zookeeper,p2y/zookeeper,arijitvt/zookeeper,ewhauser/zookeeper,rakeshadr/zk-branch-3.4,ouyangkongtong/zookeeper,likaiwalkman/zookeeper,osrg/zookeeper,crtynes/zookeeper,rakeshadr/ZooKeeper,rahulkurup/Apache-Zookeeper,mikeqian/zookeeper,rakeshadr/ZooKeeper,myhongkongzhen/zookeeper,zhuochenKIDD/zookeeper,Giten2004/zookeeper,airtimemedia/zookeeper,anchel/zookeeper,arijitvt/zookeeper,crtynes/zookeeper,AkihiroSuda/zookeeper,jango2015/zookeeper,QuickClaim/Services,rahulkurup/zookeeper,intel-hadoop/zookeeper-rhino,ExactTargetDev/zookeeper,likaiwalkman/zookeeper,Anvil/zookeeper,myhongkongzhen/zookeeper,rgs1/zookeeper,williamsbdev/zookeeper,ouyangjie/zookeeper,mikeqian/zookeeper,pingpangkuangmo/zookeeper,JaredDuCode/zookeeper,pengweiqhca/zookeeper,ouyangkongtong/zookeeper,QuickClaim/Services,rgs1/zookeeper,rahulkurup/Apache-Zookeeper,mapr/zookeeper,gigold/zookeeper,AkihiroSuda/zookeeper,myhongkongzhen/zookeeper,apurtell/zookeeper,chaozh/zookeeper,rakeshadr/ZooKeeper,mlc0202/zookeeper,apurtell/zookeeper,ch3lo/zookeeper,softliumin/zookeeper,arijitvt/zookeeper,leonardofoderaro/zookeeper,dongming/zookeeper,leonardofoderaro/zookeeper,osrg/zookeeper,osrg/zookeeper,pengweiqhca/zookeeper,xiaosl/zookeeper,Anvil/zookeeper,crtynes/zookeeper,williamsbdev/zookeeper,alibaba/zookeeper,isdom/zookeeper,rakeshadr/zookeeper-1,ouyangkongtong/zookeeper,Anvil/zookeeper,ch3lo/zookeeper,rahulkurup/zookeeper,leesir/zookeeper,rkhmelichek/zookeeper,xujianhai/zookeeper,shayhatsor/zookeeper,aeternallife/zookeeper,mlizhenbin/zookeeper,CliffYuan/zookeeper,tausten/zookeeper,williamsbdev/zookeeper,rakeshadr/zk-branch-3.4,cnauroth/zookeeper,tausten/zookeeper,arijitvt/zookeeper,breed/zookeeper,leesir/zookeeper,softliumin/zookeeper,pengweiqhca/zookeeper,Anvil/zookeeper,racker/zookeeper,shayhatsor/zookeeper,rahulkurup/Apache-Zookeeper,cnauroth/zookeeper,ExactTargetDev/zookeeper,QuickClaim/Services,Randgalt/zookeeper,rakeshadr/zk-branch-3.4,SuperLong1210/zookeeper-1,ch3lo/zookeeper,pingpangkuangmo/zookeeper,williamsbdev/zookeeper,williamsbdev/zookeeper,crtynes/zookeeper,cloudera/zookeeper,aeternallife/zookeeper,CliffYuan/zookeeper,pengweiqhca/zookeeper,QuickClaim/Services,Anvil/zookeeper,xujianhai/zookeeper,dongming/zookeeper,arijitvt/zookeeper,Anvil/zookeeper,aeternallife/zookeeper,fengjingchao/zookeeper,jango2015/zookeeper,mikeqian/zookeeper,ewhauser/zookeeper,jango2015/zookeeper,intel-hadoop/zookeeper-rhino,shayhatsor/zookeeper,apurtell/zookeeper,Anvil/zookeeper,myhongkongzhen/zookeeper,rahulkurup/Apache-Zookeeper,racker/zookeeper,Anvil/zookeeper,sanjeevtripurari/zookeeper,tausten/zookeeper,fengjingchao/zookeeper,rgs1/zookeeper,CliffYuan/zookeeper,sanjeevtripurari/zookeeper,Tony-Zhang03/zookeeper,ch3lo/zookeeper,nashuiliang/zookeeper,mikeqian/zookeeper,rakeshadr/zk-branch-3.4,ouyangjie/zookeeper,gigold/zookeeper,gigold/zookeeper,Randgalt/zookeeper,zhuochenKIDD/zookeeper,QuickClaim/Services,chaozh/zookeeper,rakeshadr/ZooKeeper,dongming/zookeeper,ewhauser/zookeeper,ExactTargetDev/zookeeper,jango2015/zookeeper,aeternallife/zookeeper,Ormod/zookeeper,intel-hadoop/zookeeper-rhino,hongchaodeng/zookeeper,dongming/zookeeper,freezhan/zookeeper,arijitvt/zookeeper,JaredDuCode/zookeeper,cnauroth/zookeeper,tausten/zookeeper,ouyangjie/zookeeper,dockmob/zookeeper,QuickClaim/Services,p2y/zookeeper,AkihiroSuda/zookeeper,AkihiroSuda/zookeeper,aeternallife/zookeeper,dockmob/zookeeper,SuperLong1210/zookeeper-1,ch3lo/zookeeper,anchel/zookeeper,chaozh/zookeeper,nashuiliang/zookeeper,yhj630520/zookeeper,tausten/zookeeper,racker/zookeeper,mlizhenbin/zookeeper,leonardofoderaro/zookeeper,wangcan2014/zookeeper,Randgalt/zookeeper,ouyangkongtong/zookeeper,xiaosl/zookeeper,Ormod/zookeeper,rakeshadr/zookeeper-1,dockmob/zookeeper,alibaba/zookeeper,breed/zookeeper,anchel/zookeeper,ewhauser/zookeeper,anchel/zookeeper,williamsbdev/zookeeper,ouyangjie/zookeeper,Tony-Zhang03/zookeeper,mikeqian/zookeeper,airtimemedia/zookeeper,xiaosl/zookeeper,leonardofoderaro/zookeeper,SuperLong1210/zookeeper-1,likaiwalkman/zookeeper,cloudera/zookeeper,leesir/zookeeper,Giten2004/zookeeper,leesir/zookeeper,AkihiroSuda/zookeeper,hongchaodeng/zookeeper,leonardofoderaro/zookeeper,mapr/zookeeper,mapr/zookeeper,xujianhai/zookeeper,Randgalt/zookeeper,nashuiliang/zookeeper,rakeshadr/zookeeper-1,mikeqian/zookeeper,aeternallife/zookeeper,mlc0202/zookeeper,intel-hadoop/zookeeper-rhino,Giten2004/zookeeper,pingpangkuangmo/zookeeper,rahulkurup/zookeeper,rakeshadr/zookeeper-1,breed/zookeeper,Randgalt/zookeeper,SuperLong1210/zookeeper-1,sanjeevtripurari/zookeeper,sanjeevtripurari/zookeeper,shayhatsor/zookeeper,likaiwalkman/zookeeper,pingpangkuangmo/zookeeper,shayhatsor/zookeeper,alibaba/zookeeper,airtimemedia/zookeeper,chaozh/zookeeper,rkhmelichek/zookeeper,zhuochenKIDD/zookeeper,apurtell/zookeeper,rkhmelichek/zookeeper,yhj630520/zookeeper,rkhmelichek/zookeeper,Anvil/zookeeper,rakeshadr/ZooKeeper,tausten/zookeeper,pingpangkuangmo/zookeeper,breed/zookeeper,softliumin/zookeeper,mikeqian/zookeeper,likaiwalkman/zookeeper,shayhatsor/zookeeper,isdom/zookeeper,leesir/zookeeper,intel-hadoop/zookeeper-rhino,tausten/zookeeper,rkhmelichek/zookeeper,rakeshadr/ZooKeeper,xujianhai/zookeeper,mlc0202/zookeeper,osrg/zookeeper,rkhmelichek/zookeeper,ouyangjie/zookeeper,crtynes/zookeeper,chaozh/zookeeper,softliumin/zookeeper,freezhan/zookeeper,softliumin/zookeeper,fengjingchao/zookeeper,nashuiliang/zookeeper,myhongkongzhen/zookeeper,JaredDuCode/zookeeper,fengjingchao/zookeeper,Tony-Zhang03/zookeeper,zhuochenKIDD/zookeeper,xiaosl/zookeeper,kmiku7/zookeeper,rahulkurup/Apache-Zookeeper,dockmob/zookeeper,rakeshadr/zk-branch-3.4,tausten/zookeeper,SuperLong1210/zookeeper-1,sanjeevtripurari/zookeeper,intel-hadoop/zookeeper-rhino,hongchaodeng/zookeeper,fengjingchao/zookeeper,rkhmelichek/zookeeper,dongming/zookeeper,mlc0202/zookeeper,rahulkurup/Apache-Zookeeper,osrg/zookeeper,rakeshadr/ZooKeeper,hongchaodeng/zookeeper,Ormod/zookeeper,Tony-Zhang03/zookeeper,xujianhai/zookeeper,rahulkurup/zookeeper,softliumin/zookeeper,anchel/zookeeper,zhuochenKIDD/zookeeper,SuperLong1210/zookeeper-1,anchel/zookeeper,Ormod/zookeeper,mlizhenbin/zookeeper,airtimemedia/zookeeper,wangcan2014/zookeeper,shayhatsor/zookeeper,mlizhenbin/zookeeper,rgs1/zookeeper,SuperLong1210/zookeeper-1,pengweiqhca/zookeeper,dockmob/zookeeper,airtimemedia/zookeeper,leonardofoderaro/zookeeper,Ormod/zookeeper,crtynes/zookeeper,freezhan/zookeeper,rakeshadr/zookeeper-1,rakeshadr/zk-branch-3.4,Tony-Zhang03/zookeeper,leonardofoderaro/zookeeper,Giten2004/zookeeper,isdom/zookeeper,JaredDuCode/zookeeper,alibaba/zookeeper,pengweiqhca/zookeeper,cloudera/zookeeper,cloudera/zookeeper,mlc0202/zookeeper,CliffYuan/zookeeper,nashuiliang/zookeeper,rahulkurup/zookeeper,Randgalt/zookeeper,yhj630520/zookeeper,tausten/zookeeper,ewhauser/zookeeper,softliumin/zookeeper,ouyangjie/zookeeper,CliffYuan/zookeeper,Giten2004/zookeeper,dockmob/zookeeper,mapr/zookeeper,p2y/zookeeper,cnauroth/zookeeper,xiaosl/zookeeper,rakeshadr/zookeeper-1,Giten2004/zookeeper,osrg/zookeeper,Tony-Zhang03/zookeeper,ch3lo/zookeeper,racker/zookeeper,mikeqian/zookeeper,sanjeevtripurari/zookeeper,anchel/zookeeper,rakeshadr/ZooKeeper,Giten2004/zookeeper,pengweiqhca/zookeeper,CliffYuan/zookeeper,crtynes/zookeeper,jango2015/zookeeper,freezhan/zookeeper,kmiku7/zookeeper,wangcan2014/zookeeper,xujianhai/zookeeper,cnauroth/zookeeper,isdom/zookeeper,zhuochenKIDD/zookeeper,pingpangkuangmo/zookeeper,sanjeevtripurari/zookeeper,yhj630520/zookeeper,Tony-Zhang03/zookeeper,freezhan/zookeeper,pingpangkuangmo/zookeeper,likaiwalkman/zookeeper,williamsbdev/zookeeper,leesir/zookeeper,chaozh/zookeeper,osrg/zookeeper,intel-hadoop/zookeeper-rhino,aeternallife/zookeeper,leesir/zookeeper,myhongkongzhen/zookeeper,chaozh/zookeeper,yhj630520/zookeeper,wangcan2014/zookeeper,ch3lo/zookeeper,aeternallife/zookeeper,kmiku7/zookeeper,rakeshadr/ZooKeeper,kmiku7/zookeeper,xujianhai/zookeeper,likaiwalkman/zookeeper,gigold/zookeeper,hongchaodeng/zookeeper,QuickClaim/Services,airtimemedia/zookeeper,alibaba/zookeeper,crtynes/zookeeper,AkihiroSuda/zookeeper,rgs1/zookeeper,apurtell/zookeeper,Ormod/zookeeper,softliumin/zookeeper,rakeshadr/zookeeper-1,crtynes/zookeeper,p2y/zookeeper,JaredDuCode/zookeeper,rahulkurup/Apache-Zookeeper,QuickClaim/Services,rgs1/zookeeper,rahulkurup/Apache-Zookeeper,crtynes/zookeeper,dockmob/zookeeper,CliffYuan/zookeeper,rkhmelichek/zookeeper,cloudera/zookeeper,hongchaodeng/zookeeper