Synapse function stack is not cloned with clone mediator

https://wso2.org/jira/browse/ESBJAVA-3029