thorium: fix a race condition that causes a SIGSEGV

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
core: add an assertion in fast ring

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