A major locus controls local adaptation and adaptive life history variation in a perennial plant