Make smtp_flush() work for TLS channel