Make singleton thread-safe

Update using the thread-safe Singleton pattern as described: 

http://blog.rubymotion.com/post/31917526853/rubymotion-gets-ios-6-iphone-5-debugger