Fixes for and expansion of stm_check_locales.m4