[mypyc] Add Python 3.12 feature macro (#15465)
It's currently unused but I have other PRs that will need this.
We can later make this more general and support things like "are we
running on Python 3.12 beta 2 or later", but this seems good enough for
now.