std: Make os::set_exit_status work with newsched