kconfig: fix undesirable side effect of adding "visible" menu attribute