A survey finds many Gen Xers aren’t planning to retire—or will work a lot longer. How AI, oddly enough, is raising their value.