Fix for "Compiler thread shutdown should switch out of VMWAIT"