[cec] extra guards around m_queryThread
[cec] and let's init m_queryThread to NULL so we won't crash on exit when CEC has been disabled
Fix code generate problem with binary string.