[PATCH 5.15 008/402] ring-buffer: Fix a race between readers and resize checks