CBLDatabase should close if another thread deletes the database.

Fixes #169 (I think)