Catch uncaught exceptions in CBLDatabase doAsync etc.

Otherwise GCD tends to kill the process, which means unit testing can’t complete.
Fixes #309