cpu/cortex-mX_common: fixed type issues in thread_arch