fixed a race condition caused by the code in zookeeper_process() and free_completions() setting sc->complete to 1 without synchronization; fixed zoo_get() not updating buffer_len value with the actuall buffer length on return; added missing enter_critical/leave_critical calls to the async ZK operations.
fixed a race condition caused by the code in zookeeper_process() and free_completions() setting sc->complete to 1 without synchronization; fixed zoo_get() not updating buffer_len value with the actuall buffer length on return; added missing enter_critical/leave_critical calls to the async ZK operations.

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

arshadmohammad/zookeeper,Obsidian-StudiosInc/zookeeper,JiangJiafu/zookeeper,shayhatsor/zookeeper,naver/arcus-zookeeper,Obsidian-StudiosInc/zookeeper,JiangJiafu/zookeeper,Obsidian-StudiosInc/zookeeper,hanm/zookeeper,hanm/zookeeper,pedrohrf/ZookeeperQuasarFibers,shayhatsor/zookeeper,naver/arcus-zookeeper,shayhatsor/zookeeper,pedrohrf/ZookeeperQuasarFibers,ralgond/paxoskeeper,shayhatsor/zookeeper,naver/arcus-zookeeper,maoling/zookeeper,pedrohrf/ZookeeperQuasarFibers,shayhatsor/zookeeper,pedrohrf/ZookeeperQuasarFibers,naver/arcus-zookeeper,arshadmohammad/zookeeper,apache/zookeeper,pedrohrf/ZookeeperQuasarFibers,kfirlevari/zookeeper,kfirlevari/zookeeper,apache/zookeeper,Obsidian-StudiosInc/zookeeper,maoling/zookeeper,ralgond/paxoskeeper,shayhatsor/zookeeper,naver/arcus-zookeeper,ralgond/paxoskeeper,ralgond/paxoskeeper,Obsidian-StudiosInc/zookeeper,shayhatsor/zookeeper,ralgond/paxoskeeper,naver/arcus-zookeeper,apache/zookeeper,Obsidian-StudiosInc/zookeeper,kfirlevari/zookeeper,pedrohrf/ZookeeperQuasarFibers,ralgond/paxoskeeper,maoling/zookeeper,shayhatsor/zookeeper,JiangJiafu/zookeeper,apache/zookeeper,kfirlevari/zookeeper,maoling/zookeeper,arshadmohammad/zookeeper,naver/arcus-zookeeper,maoling/zookeeper,ralgond/paxoskeeper,JiangJiafu/zookeeper,hanm/zookeeper,shayhatsor/zookeeper,hanm/zookeeper,arshadmohammad/zookeeper,maoling/zookeeper,JiangJiafu/zookeeper,JiangJiafu/zookeeper,naver/arcus-zookeeper,Obsidian-StudiosInc/zookeeper,hanm/zookeeper,arshadmohammad/zookeeper,apache/zookeeper,kfirlevari/zookeeper,pedrohrf/ZookeeperQuasarFibers,hanm/zookeeper,pedrohrf/ZookeeperQuasarFibers,kfirlevari/zookeeper,hanm/zookeeper,apache/zookeeper,kfirlevari/zookeeper,kfirlevari/zookeeper,Obsidian-StudiosInc/zookeeper,ralgond/paxoskeeper,pedrohrf/ZookeeperQuasarFibers,Obsidian-StudiosInc/zookeeper,maoling/zookeeper,ralgond/paxoskeeper,apache/zookeeper,maoling/zookeeper,arshadmohammad/zookeeper,JiangJiafu/zookeeper,JiangJiafu/zookeeper,kfirlevari/zookeeper,hanm/zookeeper,arshadmohammad/zookeeper,JiangJiafu/zookeeper,apache/zookeeper,arshadmohammad/zookeeper