Found when making modifications to tests/kernel/mem_protect/userspace To reproduce: 1) Add CONFIG_LOG=y to prj.conf 2) Run the test on nsim_sem target, observe hang in write_control() test