Migrate generic bootcount to Kconfig