Implement mprotect system call