Correctly bugcheck if we aren't returning a usermode thread (#506)