Lathrop beats Tri-County, advances to first-ever quarterfinal