Bug 888086 - Use StringBuilder in sync/Utils.java

Continuation of #334.

Did not do the alternative benchmarking mentioned in #334.