This attempts to initialize the thread data more like in the mainthread, which does in msvcrt_init_locale a call to _setmbcp, which finally fills the cached_locale member of the thread data.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57250
-- v2: msvcrt: Initialize locale data in new threads.