Make configuration_element thread-safe.

Lock-based solution.

Fixes #16