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