thorium_actor: use wrappers for message cache

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