Pessimistic lock & consistency

This is the solution:

http://www.couchbase.com/docs/couchbase-devguide-2.0/two-phase-commits.html