locale.library: use system default locale if locale argument is NULL.