Merge pull request #716 from mulesoft/MULE-7589

MULE-7589 - adding synchronization to allow thread safe access of transa...
(cherry picked from commit 03fa386d6833486b5d6f7eb0c2e1350f59f1b594)