MULE-7589 - improving synchronization code to reduce contention