x86/mm/ptdump: Optimize check for W+X mappings for CONFIG_KASAN=y