Expected behaviour after sync function update and _resync

Raised as https://github.com/couchbase/sync_gateway/issues/2346