utils: cleanup pid management and fix hwloc-bind on windows

Uniformize the code for --pid. Initialize to -1, and only enable
the code when > 0 (0 is reserved on both windows and Unix).

It fixes hwloc-bind on Windows because we don't call OpenProcess
on PID 0 all the time anymore.