core/cortex-m: add missing NORETURNs to thread_arch
Merge pull request #1292 from Kijewski/issue-1288

core/cortex-m: add missing NORETURNs to thread_arch