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