[SPARK-3755][Core] Do not bind port 1 - 1024 to server in spark

@pwendell, ```tryPort``` is not compatible with old code in last PR, this is to fix it
Doesn't this still have a similar issue? If I request port 80 (and am running as root, yes), this will allocate port 1104. You could say this should disallow privileged ports, but then that would be done explicitly.

What about `... else ((startPort + offset - 1024) % (65536 - 1024)) + 1024` ?