[libc++] Speed up certain locale functions on Windows

The issue is that __libcpp_locale_guard makes some slow calls to setlocale().
This change avoids using __libcpp_locale_guard in snprintf_l().

Fixes https://bugs.llvm.org/show_bug.cgi?id=41131

Differential Revision: https://reviews.llvm.org/D59525


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@356512 91177308-0d34-0410-b5e6-96231b3b80d8
1 file changed