Wrapped SslStream into QueuedStream to prevent concurrent writes.

SslStream does not support concurrent writes. QueuedStream protects the
underlying stream from concurrent writes using a queue.