implement server-side locking.
add binary protocol test tool.

test/protocol_binary.cpp tests all binary commands supported by yrmcds.
Binary stat command bug is fixed too.
merge lock branch.