update-utmp: code modernizations