Core: switch to the new ConcurrentHashMap implementation coming in Java 8

The new implementation has lower RAM overhead and better concurrency
in some cases.

Closes #6400