Fix memcached socket bug