JS: recompilation avoidance doesn't always work
The JS interpreter introduce in !9779 maintains its own link state (it doesn't use object/library granularity as the native linked, but a "block" granularity).
As such it doesn't use/update `LoaderState` at all, breaking the recompilation avoidance check for TH.
Fixing the impedance mismatch will require some refactoring, that's why it hasn't been done in the inital MR https://gitlab.haskell.org/ghc/ghc/-/merge_requests/9779 adding TH support.
Failing tests that have been disabled:
- recomp009
- recompTH
- T20604
- th-new-test
- recomp011
- T17481
Related to https://gitlab.haskell.org/ghc/ghc/-/issues/20604
issue