Fix Bug #8099 setpwent() actually does endpwent() and vice versa on FreeBSD