[PATCH 5.19 144/717] ring-buffer: Fix race between reset page and reading page