Switching the anisotropy barrier of a single-ion magnet by symmetry change from quasi-D-5h to quasi-O-h