core: added NAKED attribute to sched_task_exit()

This PR
1) adds `__attribute((naked))` to the `attributes.h` file
2) labels `sched_task_exit()` as naked to surpress compiler warnings for the `arm-none-eabi` toolchain.