inf-ptrace.c: use ptid_get_pid when resuming all threads