multi thread support
Add key locker for multi thread env
make transaction/pubsub threading safe
rm auto batch write