cbufp: use a customized ck_ring via CK_RING macros
tests: use MAX_SZ parameter instead of hard-coded value