If it is a recent socket, then it will be push and twist and the folding cover will also act as a clip to stop the plug coming out.
If not it shouldn't be too difficult to re wire a suitable replacement, just remove the plastic socket from the the metal plate it is mounted on, take a photo of the way it is wired up and then wire it into the new one.
These hold no fear from me, my father, when I was young, was forever unhitching but forgetting to unplug resulting in hours of fun rewiring the "bare wires pulled from the plug" without a diagram.At least the permutations in those days were less with less pins in the plugs/ sockets. Happy days!!