thorium: use queue instead of a tree for the flushing timeline

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>