[PATCH 5.10 115/226] ring-buffer: Avoid softlockup in ring_buffer_resize()