Stabilize test_latest_gc_info_need_major_by
Fix:
1) Failure: TestGc#test_latest_gc_info_need_major_by [/home/runner/work/ruby/ruby/src/test/ruby/test_gc.rb:266]: <nil> expected to not be nil.
GC.stat(:major_gc_count) can be bumped while GC.latest_gc_info(:need_major_by) is still nil.
GC.stat(:major_gc_count)
GC.latest_gc_info(:need_major_by)
Stabilize test_latest_gc_info_need_major_by
Fix:
GC.stat(:major_gc_count)can be bumped whileGC.latest_gc_info(:need_major_by)is still nil.