[PATCH 6.8 018/493] ring-buffer: Fix a race between readers and resize checks