irq: use PendSV to avoid disabling irq in context-switch