Spontaneous formation of the unlocked state of the ribosome is a multistep process