Use threads in flush_deletes, too