[for-linus][PATCH 2/4] ring-buffer: Fix a race between readers and resize checks