Clear LinkSegments when repainting

Each time we recreate the LinkSegments for a TextBlock, make sure to clear out
the existing segments so we don't leak them.