Prevent a deadlock with use of restart_threads by spawning a thread to send the driver flush work messages.