[PATCH openEuler-1.0-LTS 2/2] ring-buffer: Fix race between reset page and reading page