Some uid/gid fixes for (id_t)-1 and other large ID values.