[PATCH 6.9 019/427] ring-buffer: Fix a race between readers and resize checks