[Inductor] Limit g++12 installation to Linux (#89472)
According to https://anaconda.org/conda-forge/gxx/ its only available on Linux
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89472
Approved by: https://github.com/soumith, https://github.com/jgong5