Add more deterministic port selection for Gerrit.

Let tests select port based on PID instead of random guessing.

We use last 3 decimal digits of PID so that usually we'll just get a
number of adjacent ports.

Change-Id: I5b402ce52fdb61d749f752563a837406508fb6aa