Make the singleton pattern thread-safe
Version 1.0.1