[Core] Locale dependent code

For me the core tests failed because there are two locale dependent parts in the code.
Look at the Jira ticket for details.

Why is it necessary to check the exception message in isBindCollision in
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/util/Utils.scala#L1686
?
Yeah, it's hacky to depend on the exact message. I suppose this will now trigger on any `BindException` with a message, which could include things like invalid port or other failure. But maybe that's fine.