thorium: add thorium_worker_allocate

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