tests: Fix test-gom-find running in distcheck

The DB was copied as read-only, so we couldn't even check the
version of the database as we try to create a _gom_version table.