[PATCH openEuler-1.0-LTS 7/7] ring-buffer: Fix race while reader and writer are on the same page