Government weighs up closing sex offender name change loophole