Creates a new character-stream writer whose critical sections will synchronize on the given object.
Parameters:
lock
Diagram: Writer