tls: reintroduce socket.encrypted

Just a property that is always `true` for TLS sockets.

fix #6735

/cc @tjfontaine or @trevnorris . I'm open for discussion of this.