Fix stout/os to properly check errno from getpwnam_r.
Support some Linux systems (e.g., RHEL7) which return non-zero and set
errno to indicate a user or group was not found.

Review: https://reviews.apache.org/r/24249