Fundamental group of locally symmetric varieties