menuconfig: Fix hang when changing "int" values, add bounds check