ogr provider: reopen the data source if a REPACK failed (fixes #7540)