Update the locale thread-safely.
Update the locale thread-safely.

setlocale() affects the entire process, potentially changing the locale
while another thread is executing.  In POSIX.1-2008, a thread-safe
uselocale() function was added that affects only the current thread.
Use this function instead when it's available.

Maluuba/liblinear,Maluuba/liblinear,Maluuba/liblinear,Maluuba/liblinear