Persistent and reversible phase control in GdMnO3 near the phase boundary