Don't check ptrace_scope if it isn't compiled in

If `CONFIG_YAMA` isn't set in the kernel config at compile time, ptrace protection isn't available and the file in `/proc/sys` doesn't exist. In that case `cat /proc/sys/kernel/yama/ptrace_scope` prints a (harmless) error message.