Make getting Process ParameterSet thread-safe

The static analyzer was complaining about the access so I made it safe.
The use of a mutex in this context shouldn't be a performance problem since it is used very infrequently and normally before the event loop has begun.

NOTE: We should eventually have a campaign to remove the use of this function since it has no reliable meaning when a job contains a SubProcess.