Make OSM DB metadata initialization in transaction
Check Sqlite version to switch metadata initialization parameter
Merge pull request #1399 from giohappy/fix_osm_initspatialmetadata

Fix #9693 (Make OSM DB metadata initialization in transaction)