ipc/sem.c: move wake_up_process out of the spinlock section