s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().