use ring buffer in message queue

Link: https://github.com/GeneAssembly/biosal/issues/294
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>