Fix bug in handling getpwuid_r
it does not set the pwd struct to null when no match is found