Use external synchronization instead of synchronizedMap in AutoCompare