Remove compile warning for passing const to non-const

Change-Id: I7780cabf419ebb1df69a9f56454a10275dcd0caf
Reviewed-on: http://review.couchbase.org/43131
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>