Explain double printing of a username in subsequent calls to getpwuid.
Implement `getpwnam` in terms of `getpwent`, `setpwent` and `endpwent`.