Refactor base::message_loop

Make use of the base::make_task() function in
base::message_loop::stop().