thorium: receive and send at most 1 message per iteration

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