Mass Flows in Cometary Ultracompact H II Regions