fixed synchronizer for thread-sensitive entry points.