Fix code in synchronized example to use class/instance method lock fix.