[spatialite] Several fixes for provider (Fix #8636)
And fixes the NoGeometry behavior