taskstats: split fill_pid function