Creates a thread-safe wrapper around the specified System.IO.TextWriter instance.
writerThe System.IO.TextWriter to synchronize.
A thread-safe System.IO.TextWriter .
TypeReasonArgumentNullException writer is null.