core: and cpu: Added NORETURN to functions that should not return

regarding #1078 this PR adds `__attribute__((noreturn))` in form of the `NORETURN` define to
`sched_task_exit()` and `cpu_switch_context_exit()`

This fixes the warning on  returning from a `noreturn` function (currently only tested on native)