Added callbacks to new module types for forking support

On request from HLT, I added the callbacks used by the forking mechanism.
NOTE: forking and threading should not be used together in the same job.