Handle multiple tests with same nodeid

Caused by xdist's --dist=each. For example,

  py.test --tx=2*popen --dist=each

Now events include a pid, so the (nodeid, pid) pair uniquely identifies a test.