mm: fix checks for PROT_NONE