MULE-8028 - adding support for mule client in http connector

Use a latch instead of sleep