Fixes periodic crashes in PowerPoint 365
--
v11: d2d1: Acquire lock before attempt to draw to device context
d2d1: Add test for singlethreaded draw
d2d1: Add test for multithreaded draw
https://gitlab.winehq.org/wine/wine/-/merge_requests/4452
This allows initializing locale from Mac locale identifiers like
'zh-Hans-US'. The current implementation recognizes it as 'zh-US'
which isn't a valid locale identifier for Windows.
This patch will try again with the 'lang-script' identifier after
get_win_locale() fails with the 'lang-region' identifier.
--
v5: ntdll: Try harder to fallback to neutral locales.
ntdll: Initialize locale from Mac language identifiers with script name.
ntdll: Use different variable names for Mac locales.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4357