Skip FMDB thread-safety check when running on dispatch queues.

Fixes #376