Replace manual synchronization block in SpringClassRule with Java 8's Map.computeIfAbsent(). Issue: SPR-12421