[PATCH 4.19 003/213] ring-buffer: Fix a race between readers and resize checks