platform: fixed initial value of m_thread in CThread