boost::asio async & sync function merging