[Reusable workflows] MacOS - Move codegened binary builds to reusable workflows (#81447)
Refactor the codgen used to generate MacOS binary builds into reusable workflows
This PR extracts out what's needed for binary builds & tests for MacOS. https://github.com/pytorch/pytorch/pull/81442 extracts out the steps for Windows workflows as well
Together, these two (combined with https://github.com/pytorch/pytorch/pull/81044) fix https://github.com/pytorch/pytorch/issues/74480
### Testing
Ran CI with `ciflow/trunk`, `ciflow/binaries`, `ciflow/binaries_conda`, and `ciflow/binaries_wheel` labels
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81447
Approved by: https://github.com/malfet