Be better behaved with WANT_READ, etc. in proxy_tls_recv()

Split out the functionality so that it can potentially
be called from proxy_tls_send(), too