Optimized [threading-sync] transitions set: removed transition when calling wait() and when exiting synchronized block.