thorium: track memory allocations for dispatcher

Before: 46021 0xc170626e
After: 34276 0xc170626e

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