s3: Fix bug 8099 - setpwent() actually does endpwent() on FreeBSD