[SPARK-3755][Core] avoid trying privileged port when request a non-privileged port

@pwendell, ```tryPort``` is not compatible with old code in last PR, this is to fix it.
And after discuss with @srowen renamed the title to "avoid trying privileged port when request a non-privileged port". Plz refer to the discuss for detail.
Ah never mind, got it. If we ask for 65537 then it wraps around to try 1025.