[#1706] Thread safe wrapper for HashMap to avoid concurrency problems

http://play.lighthouseapp.com/projects/57987-play-framework/tickets/1706-rare-race-condition-in-template-hashmap-templateloaderjava