Revert "Merge pull request #2225 from tom-tan/trusted-stdio-LockingTextWriter-put"

It broke win32 build.