TST: correctly predict locale setability

Don't join the lang and encoding when performing the trial set, because

    locale.setlocale(locale.LC_ALL, ('it_CH', 'utf-8'))

succeeds, but

    locale.setlocale(locale.LC_ALL, 'it_CH.utf-8')

throws locale.Error.
Merge pull request #5538 from neirbowj/fbsd_failing_tests

TST: correctly predict locale setability
TST: fix cumcount test on 32-bit env
Merge pull request #5540 from gdraps/cumcount-test-fix

TST: fix cumcount test on 32-bit env