cbufp: use a customized ck_ring via CK_RING macros
cbufp: refactor dequeue processing in cbuf_c