[PATCH 12/12] pid: mark struct task const in helper functions