CommonFuncs: Set the locale conventions in uselocale().

newlocale() no longer sets the locale categories, so we have to set the locale conventions manually. This fixes LC_NUMERIC_MASK and LC_MONETARY_MASK, but all other masks are still broken.