Don't they have the equivalent...
... of a National Insurance number?
AFAIK in this country that stays immutable even if you legally change your name.
I know they don't actually have NI but there should be a unique "citizen number" (primary key in database terms), assigned at birth, for this very reason.
It's why many (most?) gov depts will ask for this first and then ask you to confirm your name and address.