Fix race conditions in KDSoapNamespaceManager on Windows

because MSVC doesn't implement threadsafe statics (issue41).