Implement pmap_protect.