pinctrl: pinctrl-single: Add functions to save and restore pinctrl context