thread-mq: do final q flush only when we aren't dispatching anyway