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.
Merge pull request #5112 from Dr15Jones/enableForkingSupportForNewModuleTypes

Added callbacks to new module types for forking support