MB-8903: Make use of Partition Version

Prior to this commit the Partition Version wasn't taken
into account, now it is.

Please note that only couch_upr was updated, the tests
in couch_set_view are expected to fail (until the next
commit).

Change-Id: I87704c2babcf10fffb1629b9eb9599d4bb99df5e
Reviewed-on: http://review.couchbase.org/30837
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>