[PATCH 6.1 011/473] ring-buffer: Fix a race between readers and resize checks