libpwdgrp: use getpwent() instead of getpwent_r()