Handle EPERM from os.kill(), bug #358211.
SpawnProcess: convert cgroup pids to int earlier