Added workaround for Couchbase mixing exception, method result and result code APIs for failed CAS operations