Electronic instabilities and structural fluctuations in self-assembled atom wires