cpu cortex-m3_common: cleanup thread_arch.c