ma::detail::latch class introduced. Header includes updated. Minor refactoring done.