[PATCH v3 03/10] Consolidate determination of UID/GID to run as