kconfig: Use GenericStateLocation for state files
The patch is a simplified upstream patch. I have removed the changes
that enable migration from old to new location on non-Linux because we
deal with migration ourselves (and the migration wouldn't work anyway
with our fully customized paths).
(cherry picked from commit 2553d4a7270639cfa8c1bd6bb8547289bf32eaac)
- GnuPG-bug-id: T7717