[rt #84963] force C locale for gcc -print-search-dirs

as the perl core hints/linux.sh does.