ogr provider: write numeric data in C locale (fixes #8332)