[core.cache] make SQLiteRegion more robust in case of concurrent access