Added CMK_TRACE_ENABLED to guard the tracing of comm thread