[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
I am doubt what the diff between ```((startPort + offset - 1024) % (65536 - 1024)) + 1024``` and ```(startPort + offset) % 65536''', it seems only when startPort + offset  = 65536 this two formula get different values.
I think the key point is whether port(1 - 1024) should allowed in spark. If allowed here we do not need change ```tryPort``` and we should catch the ``` java.net.SocketException: Permission denied``` to let it go on trying next port
how do you think so?