ZOOKEEPER-1972. Fix invalid volatile long/int increment (++) (Hongchao Deng via phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1612015 13f79535-47bb-0310-9956-ffa450edef68
ignore encoding warning
fix concurrent atomic