security: Fix mode test in selinux_ptrace_access_check()