Merge pull request #846 from mulesoft/MULE-7728

MULE-7728: Fixed flaky test.
(cherry picked from commit 891eec807fb79a8b75aa95b46ddcc89fb3e5c695)
Merge branch 'mule-3.4.x' of https://github.com/mulesoft/mule into mule-3.4.x
Merge pull request #862 from mulesoft/MULE-7773

MULE-7773: Ensure correct initialization for dynamic referenced sub-flow...
(cherry picked from commit f0b3727354ac84cc3f11a04dfe06cd9c08cfca81)