Mail: blocked client writes while waiting for auth_http response
While waiting for the auth_http response, the client read handler is
ngx_mail_auth_http_block_read(), but the write handler was left as
ngx_mail_send(), so a client write event during the wait was handled
by a function which can close the client connection, destroying the
session while the auth_http connection still referenced it.
The client write handler is now blocked while waiting for the auth_http
response, with proper cleanup on errors, and restored right after the
auth_http connection is closed.