lavu: add a new API for reference-counted data buffers.