fix #106 - synchronizing "apply" visitor method makes sure visitors wait
to visit composite nodes