So the simple solution to this type of manipulation is adding a part to the gender change request that says "I swear under threat of legal penalty that I identify as [gender]". Doesn't hurt trans people and makes abuses of the system like this clear cases of legal fraud.