[PATCH 6.5 176/321] ring-buffer: Avoid softlockup in ring_buffer_resize()