thorium: add assertion to detect memory leaks in ephemeral pool

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