kernel: fix compiling error when RT_DEBUG is not defined

Define RT_DEBUG_IN_THREAD_CONTEXT when RT_DEBUG is not defined.
Merge pull request #172 from grissiom/rtt-next

kernel: fix compiling error when RT_DEBUG is not defined