馃崚 [kcms/automounter] Fix crash on close
The KCM widget and its children are destroyed before the KCModule.
Therefore by the time we call saveLayout the widget is already deleted and accessing it crashes.
Instead save the layout right before the widget is deleted
SENTRY: SYSTEMSETTINGS-2D3
(cherry picked from commit 9828adfb)
Co-authored-by: Nicolas Fella nicolas.fella@gmx.de