HBSD: make the code easier to read

github-issue: #60 #62
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
HBSD: refactor ptrace hardening, reorder the functions

github-issue: #60 #62
Signed-off-by: Oliver Pinter <oliver.pinter@hardenedbsd.org>