buffers: Introduce buf_remaining_space