Add customise to drop non-threadsafe parts from the process.
Merge pull request #1558 from ktf/drop-non-mt-services2

Add customise to drop non-threadsafe parts from the process.