Enhanced thread safety tests with the latest lang release
Use consistent hashing and thread local caches of StringBuilders.