test_ogrsf: remove useless RollbackTransaction() calls in error code paths; and fix/workaround to make test_ogrsf work on multi-tables sqlite and gpkg databases

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@27323 f0d54148-0727-0410-94bb-9a71ac55c965