Fixes NB#125835, wakeup send queue headers before flushing the accounts