fixup! Fixed bug with mutex in `ring_buf`