Use gcc9 in linux-bionic-cuda12_1-py3_10-gcc9-build workflows (#103075)
Use gcc9 in linux-bionic-cuda12_1-py3_10-gcc9-build workflows
After PR, which fixed gcc9 transition : https://github.com/pytorch/multipy/pull/321
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at a076506</samp>
This pull request updates the GCC version for Python 3.10 and CUDA 11.8/12.1 test images and removes the unused CUDA 12.1 image configuration and reference from the docker build scripts and workflow.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103075
Approved by: https://github.com/malfet