strfmon_l: Use specified locale for number formatting
(cherry picked from commit 621bf91893ad96c2ec46e603bf4c5b8762e3f730)