Make settings thread safe.