[ruby-core:123306] [Ruby Bug#21612] Make sure we never context switch while holding the VM lock