dispatch: Handle out-of-order dispatching

I.e. resume before the corresponding wait.