pipe: add pipe_buf_confirm() helper