[PATCH 6.6 013/744] ring-buffer: Fix a race between readers and resize checks