[GHC] #8517: Add library function retrieve label set by GHC.Conc.Sync.labelThread