Add test reproducing crash when concurrently calling Manager.getDatabase

See couchbase/couchbase-lite-java-core#195.

This is kind of a nasty test, sorry. It fails consistently for me on a stock Nexus 4-preset emulator without the patch to core though.