[SPARK-5007] [CORE] Try random port when startServiceOnPort to reduce the chance of port collision