changed initialization of singleton so it's thread-safe.
Authored by: mrieser 2007-11-29
Parent: [r82]
Child: [r84]