A balance between elongation and trimming regulates telomere stability in stem cells