mm/core, x86/mm/pkeys: Add arch_validate_pkey()