Ptrace porting issues

These are just some minor things I noticed about `Task`'s use of `ptrace`.