[libcxx] locale.cpp: Move build_name helper into unnamed namespace (#92461)

Fix linkage of `build_name`; it is not supposed to have external
linkage.

NOKEYCHECK=True
GitOrigin-RevId: 2a90d59fc3905d3d56dac99fa25640a6d6a7bad2
1 file changed