Remove extra defunct DEBUG_FLAG_THREADID references