[PATCH 6.2 151/173] ring-buffer: Fix race while reader and writer are on the same page