Fixed config file locking issues