Welcome to the PF.
I'm not an ME, but that design looks to have problems. Is it something that you bought somewhere and you are trying to make it work? Or something that you or a friend want to design?
To get clean horizontal movement of the female latching piece, the force from the male piece should be in-line (coaxial) with the piston. Otherwise you end up with binding problems like what you are seeing. Can the female latching piece be redesigned to move the piston up closer to the contact point with the male latching piece?
Or, can the piston be supported on a pivot, so it can follow the tilt of the female latching piece? It seems to me that as drawn, this mechanism will not work well, even with the bandaids suggested by others so far. Just my 2 cents...