Dual role of ribosome-associated chaperones in prion formation and propagation