Spitzer Parallax of OGLE-2018-BLG-0596: A Low-mass-ratio Planet around an M Dwarf