External release of entropy by synchronized movements of local secondary structures drives folding of a small, disulfide-bonded protein