Mechanism of Amyloidogenesis of a Bacterial AAA+ Chaperone.