If we are creating a config file and its directory doesn't exist, we fail to set the right permissions for the file.
This affects kde_settings.conf and results in the KCM not being able to read stored settings.
BUG: 414396
CC-BUG: 342722
FIXED-IN: 5.18.1