Make singleton thread-safe 

Update using the thread-safe Singleton pattern from 

http://blog.rubymotion.com/post/31917526853/rubymotion-gets-ios-6-iphone-5-debugger
Merge pull request #32 from wndxlori/master

Make singleton thread-safe