[PATCH 5.4 128/189] perf/core: Fix missing wakeup when waiting for context reference