target-mips: optimize write to env->hflags