The mass of TOI-519 b: A close-in giant planet transiting a metal-rich mid-M dwarf