vbucket: add helper macros

Change-Id: I2507362761c27a1d020af42b567bd22108b88d68
Reviewed-on: http://review.couchbase.org/37589
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>