[PATCH 6.0 156/862] ring-buffer: Fix race between reset page and reading page