[SPARK-4952][Core]Handle ConcurrentModificationExceptions in SparkEnv.environmentDetails

It wasn't clear to me at first whether this is the culprit, but it looks so since the underlying object being modified is a `java.util.Properties`. The defensive copy made in `Utils` should be thread-safe in the sense that `Hashtable.clone()` is `synchronized`. LGTM.