[PATCH 11/12] pid: rewrite task helper functions avoiding task->pid and task->tgid