sched/wait: Improve __var_waitqueue() code generation