MULE-7773: Fixed the special case when the referenced flow is flowConstructAware. This is requiered in 3.3.x, but is better to include it in all branches. The DynamicSubFlowTestCase fails in 3.3.x without this.

(cherry picked from commit 01f92cba206072be5b926c8850cafd8d1bb8b5da)