fix possible race condition in singleton (see https://github.com/wagnerandrade/Thunderstruck/issues/3)
Merge pull request #4 from bdemarzo/master

fix possible race condition in singleton