Lock reading as well as writing of config file.