Always flush buffers after sending a message

Fixes issue of NGX_AGAIN when terminating chunk isn't sent (mainly when sending messages via HTTPS)