Use cb_assert instead of assert

Change-Id: I0762e223e0f6e25134bf15999ff03dad17d0f176
Reviewed-on: http://review.couchbase.org/43020
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>