test nl_langinfo_l(3), iswalpha_l(3), towupper_l(3)
refactor in preparation for testing more functions; no functional change
first draft of tests for newlocale(3), duplocale(3), uselocale(3)