Fix' env==NULL on non-SMP VM' bug on a uniprocessor system