[reg] fix Issue 13084 - ModuleInfo.opApply delegate expects immutable parameter

https://issues.dlang.org/show_bug.cgi?id=13084

Also requires https://github.com/D-Programming-Language/druntime/pull/886

The changes are pretty self-explanatory, it avoids breaking ModuleInfo code because it is now immutable.
I suggest you use a tool like [Digger](https://github.com/CyberShadow/digger) instead of putting workarounds in the compiler.