gc: fix enumeration of TLS values to avoid bumping refcounts