fix regression in setlocale for LC_ALL with per-category setting