Close SQLite database if CBL_SQLiteStorage fails during opening
Close SQLite database if CBL_SQLiteStorage fails during opening

If CBL_SQLiteStorage opened the SQLite database but then got an error
during the remainder of the opening process, e.g. inability to decrypt
the db, or wrong schema version or something, it would back out without
closing the SQLite handle, causing a leak.

I’ve also enabled SQLite error logging, which was actually what showed
me the above bug (it warns if you delete the db file without closing it.)

couchbase/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios,amco/couchbase-lite-ios,amco/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios