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