[PATCH 5.10 077/390] ring-buffer: Fix race between reset page and reading page