[PATCH 5.10 192/290] perf/core: Fix missing wakeup when waiting for context reference