Move from static object to pure static function.
Merge pull request #1154 from ktf/fix-SimG4Core-Notification

Multithreaded fixes -- Move from static object to pure static function.