When 'lock-file <lockfile>' is used in configuration at the same time as using '-X none' in 'named' invocation, there is an invalid logic that would lead to a isc_mem_strdup() call on a NULL value. Also, contradicting to ARM, 'lock-file none' is overriding the '-X' argument. Fix the overall logic, and make sure that the '-X' takes precedence to 'lock-file'.