compiler: Record original thunk info tables on stack
Here we introduce support for capturing info tables of entered thunks on the stack, enabled by the -forig-thunk-info
flag.
See Note [Original thunk info table frames]
for details.
Closes #23255 (closed).
Also fixes #23369 (closed) to ensure correct recompilation checking behavior for this and other code generation flags.