I might have a latch assembly for the glass if you need one.
I had such a problem with corrosion inside the liftgate that i had to overhaul the whole thing. I got a quote of $119 for the entire workings inside the hatch (including latches & actuator) from ped5stang, but I was able to find another member who had no use for the guts of a tailgate he had lying around and got the stuff free...SWEET!!!!
Getting to the lock cylinder isn't that terrible. Take the interior trim panel off, remove the actuator rod from the white/yellow cylinder clip and undo the wiring harness connector. Forceably remove the (presumably rusty) horseshoe-type clip from around the cylinder...this may take the most effort of the whole job. Then, IIRC, you twist the cylinder and pull it out.
After having no keyed entry into the X for almost 2 years as all were frozen (stupid keyless entry), it was sure nice having a backup plan should the keyfob/keypad/electrical system fail.
LMK if you have any Qs.