Add accessor functions for cb_buf, which enforce locking and unlocking
Part of
legacy/trac#31614 (moved)