tls: reintroduce socket.encrypted

Just a property that is always `true` for TLS sockets.

fix #6735