PTRACE HARDENING: first round of cleanup

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>