Added thread safe calling.
See code.google.com/p/go-wiki/wiki/LockOSThread