Fix logic to avoid a potential deadlock in ahd_run_qoutfifo()