Fixes #339, and refs #349 as it may also resolve it.
Merge pull request #350 from couchbase/issue-339

Fixes #339
Merge branch 'master' of https://github.com/couchbaselabs/couchbase-lite-net into issue-348
Use a scheduler to serialize writes from multiple threads.