Fix a race introduced by the recent loadavg race fix, plus add a
debug check for a hard to debug case of bogus wakeup function flags.

Signed-off-by: Ingo Molnar <mingo@kernel.org>