Made synchronization object static

_lock was a member variable, it must be static for SingletonFactory to be thread safe.
Merge pull request #24 from dchrno/master

Made synchronization object static