use atomic read to read locked in ring queue

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