[PATCH openEuler-5.10-LTS-SP1 12/13] ring-buffer: Fix race between reset page and reading page