[Chapel Merge] Fix writeln'ing GPU locales, expand test to cover

Branch: refs/heads/main
Revision: 8827843
Author: e-kayrakli
Link: Fix writeln'ing GPU locales, expand test to cover that by e-kayrakli · Pull Request #20277 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20277 from e-kayrakli/gpu-fix-locale-writeln

Fix writeln'ing GPU locales, expand test to cover that

My Small fixes to get GPU testing working properly by e-kayrakli · Pull Request #20249 · chapel-lang/chapel · GitHub fixed
writeln(here.gpus[0].name), but broke writeln(here.gpus[0]). This PR fixes
that by using the proper internal helper.

Also adjusts a test added by #20249 to make sure we can print GPU locales.

[Reviewed by @stonea]

Test: