added Mutex lock around shared resource initializer