pipe: add pipe_buf_release() helper