[PATCH] ring-buffer: Prevent inconsistent operation on cpu_buffer->resize_disabled