Question: can you put 2 earth wires?
Answer: If 2 earth wires go from the feed cables into the terminal on the back box you then only need one wire from the box to the socket. (even if the new socket has two earth terminals.