shared-mem-locks: don't connect to memcached twice