Track pipeline groups using a shared reference counter instead of a linked list. (cherry picked from commit 31f392db20207a1b05d6286c3c56f76c8d69e574) (cherry picked from commit 2211120222)
2211120222