Make longpoll aware of when new block detection has detected a new block first and avoid flushing the work queue twice.