Fix lock / unlock semantics in TLS locking function
Initial pass @ TLS transport documentation