[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 think it is ok. By this PR even root user can not use port 1- 1024(leave them to system) in spark. An important point here is we can not change the port before, for example the old app web ui is 4040, we can not change it. But if use ```... else ((startPort + offset - 1024) % (65536 - 1024)) + 1024``` , the new web ui port will be 4040+1024