Invoke new thread to avoid 'mutex can't lock' issue

In DetachMultiProcessMixin.
Same as https://github.com/fluent/fluentd/pull/191

@frsyuki Could you check this?