[PATCH OLK-6.6 2/3] ring-buffer: Make wake once of ring_buffer_wait() more robust