The behaviour described, pidof not seeing processes in the "D" state, is expected, correct, and documented in the pidof manual page. As it says in the manual page, if yo uwant to see processes which are uninterruptable or zombies then it is required to pass the "-z" command line flag.
- Jesse