Fixed pthread issue in memcached.