[PATCH 4.14 076/210] ring-buffer: Fix race between reset page and reading page