Fixes #231 by changing order of setSequence and asyncTaskFinished.

https://github.com/couchbase/couchbase-lite-java-core/issues/231