rtos: Rewrite rtos_qsymbol() and fix auto-detect false positive