MB-11263: Add retry logic for temporarily failed mutations

Processing a mutation on the consumer side can fail due to temporary out of memory
conditions. In that case, we just need to return from the failure and re-process
the failed message in the next iteration.

Change-Id: Idd50fa66d7288db9e25db837a19d2bdd0057437f
Reviewed-on: http://review.couchbase.org/37999
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Sriram Ganesan <sriram@couchbase.com>