[rql2sql] Fix iter_exists_sols() excessive cleaning of _state.tables [applied]