[PATCH 5.4 050/255] ring-buffer: Fix race between reset page and reading page