fix `CollectionCacheInstallRecord()`

see: http://unqlite.org/forum/crash-in-collectioncacheinstallrecord
Merge branch 'fix-CollectionCacheInstallRecord'