2.3.x: sqlite plugin - disable shared cache for sqlite prior to 3.7.15

Apply https://github.com/mapnik/mapnik/pull/2528 on 2.3.x.