Commit 5a3afa97 (login: Replace macro-based control flow with function calls in utmp) introduced a regression because after it, __libc_updwtmp attempts to unlock the wrong file descriptor. (cherry picked from commit 341da5b4)