Ultralong spin lifetimes in one-dimensional semiconductor nanowires