ofono: Move netreg name update into a function