Make Config class thread safe.

Wrap config's data hash in mutex