thread->detach() creates confusion of dovecot