[SPARK-5006][Deploy]spark.port.maxRetries doesn't work

https://issues.apache.org/jira/browse/SPARK-5006

I think the issue is produced in https://github.com/apache/spark/pull/1777. 

Not digging mesos's backend yet. Maybe should add same logic either.
Swithing to `def` is not enough. For some port using in SparkEnv, for instance the BlockManager's and 'http file server' port, they will not be able to read `spark.port.maxRetries` before `env` in SparkEnv is set.