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