fix `CollectionCacheInstallRecord()`

see: http://unqlite.org/forum/crash-in-collectioncacheinstallrecord