[PATCH openEuler-22.03-LTS-SP1 v2 068/370] ring-buffer: Check pending waiters when doing wake ups as well