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