memcached: temporary workaround to fix HUP signals

Temporarily allow starting new threads during factory destruction in
the master process. Apparently we start a new thread to execute
scheduled cleanup code.

Fixes https://github.com/pagespeed/ngx_pagespeed/issues/364