core: sched: thread: optimize thread status field usage

see PR #716 for discussion
sys: update ps to reflect thread status variable changes
Merge pull request #725 from kaspar030/optimize_thread_status_usage

core: sched: thread: optimize thread status field usage