[PATCH 6.8 347/399] ring-buffer: Make wake once of ring_buffer_wait() more robust