Extended draconian thread-safety check to support dispatch queues.

If the CBLManager.dispatchQueue property has been set, databases will check for the
correct queue, _not_ the correct thread.