tls: do graceful shutdown

Hello Ben!

Let me describe this patch in a few words:

* https://github.com/apache/httpd/blob/trunk/modules/ssl/ssl_engine_io.c#L985
* https://github.com/apache/httpd/blob/trunk/modules/ssl/ssl_util_ssl.c#L165

/cc @bnoordhuis @pquerna