Made synchronization object static

_lock was a member variable, it must be static for SingletonFactory to be thread safe.