run-regression-test: add --skip-finished-queries option