fix: dev: Fix error path bugs in the manager's "recursing-clients" list management
In two places, after linking the client to the manager's "recursing-clients" list using the check_recursionquota() function, the query.c module fails to unlink it on error paths. Fix the bugs by unlinking the client from the list.