[PATCH openEuler-5.10-LTS-SP1 21/33] ring-buffer: Fix race while reader and writer are on the same page