Fixed flags value not being respected during store operations.

Change-Id: Ie2b1280f3e7dbb40b0d35295f61f9a3712dcff44
Reviewed-on: http://review.couchbase.org/28935
Tested-by: Brett Lawson <brett19@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>