[ruby-core:126246] [Ruby Bug#22228] Do a major GC in YJIT test helper `assert_compiles` before running the test code