ipc: Change init order to avoid assertion
os_threading.h:121: void os_mutex_destroy(struct os_mutex *): assertion "om->initialized" failed
If any error occurs during init_all
, then assertion happens in teardown_all
because mutex is not initialized.