[PATCH 4.19 37/91] ring-buffer: Avoid softlockup in ring_buffer_resize()