pH Modulates Friction Memory Effects in Protein Folding