lock write_config_vars