sanitycheck: set state correctly in case of a crash
sanitycheck: set state correctly in case of a crash

sanitycheck not printing QEMU console in some cases where a crash
happens and when state is not set correctly.

Fixes #9061

Signed-off-by: Anas Nashif <0d9952ec84ac43c159f6b7e7ed99a9080c00dd6e@intel.com>

finikorg/zephyr,ldts/zephyr,galak/zephyr,kraj/zephyr,nashif/zephyr,explora26/zephyr,kraj/zephyr,punitvara/zephyr,punitvara/zephyr,kraj/zephyr,Vudentz/zephyr,Vudentz/zephyr,nashif/zephyr,explora26/zephyr,kraj/zephyr,ldts/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr,galak/zephyr,kraj/zephyr,Vudentz/zephyr,ldts/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,explora26/zephyr,nashif/zephyr,explora26/zephyr,punitvara/zephyr,punitvara/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,Vudentz/zephyr