[Dovecot] memory allocation in new thread