add lock for memcached consistency