thorium: flush message if timeout is 0

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