Fix racecondition between write() and spinner
Fix racecondition between write() and spinner

We now guard access to sys.stdout with a threading.Lock(), so
write() and the spinner thread no longer mangle up their
ouptut.

Fixes #29

pavdmyt/yaspin