Code generation bug fixed. In the threads code, the invocation of synchronized methods on monitor instances didn't have
the '.' (member access) after the instance name ("mymonitor_method" instead of "mymonitor.method")