stream-tls: pass cork, uncork, and close to underlying stream.
stream-tls: set retry flags on failure.