testsuite: check return value of setlocale()

If setlocale() fails to set the desired locale value, the test results
look like a bug appeared in libreport.

Related to rhbz#1070892

Signed-off-by: Jakub Filak <jfilak@redhat.com>