Prevent starting/stopping a thread on Windows to serialize XML.