lowering: avoid `gensy` in anonymous generator name (#61582)
Change the anonymous function name for `if @generated` to use the module
counter.
Using `gensy` (`gensym()`) for anonymous module-level names is generally
avoided in lowering, since it makes the anonymized names susceptible to
changes to unrelated execution / lowering in other modules etc. (in the
same process), but it seems that we missed this usage.
Required for https://github.com/JuliaLang/julia/pull/61577, since
JuliaLowering cannot guarantee `gensym()` parity with flisp (only module
counter parity).
(cherry picked from commit b936235316e3af26c51c1bcb4f40da6f3d889286)