Sociedad score late, win, grab Liga lead