Added thread locking to loader.
	modified:   snapshot.py