qd65xx: fix deadlock on error handling