Shape: add a 2GB_LIMIT=YES layer creation option (and SHAPE_2GB_LIMIT configuration option)

git-svn-id: https://svn.osgeo.org/gdal/trunk@26657 f0d54148-0727-0410-94bb-9a71ac55c965
ogr2ogr: make sure that target dataset is properly closed when a CreateFeature() fails (so that truncated shapefiles have their header file properly updated)

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