tls_openssl: Readd support for nonblocking operation