MINOR: tinfo: make thread_set functions return nth group/mask instead of first

thread_set_first_group() and thread_set_first_tmask() were modified
and renamed to instead return the number and mask of the nth group.
Passing zero continues to return the first one, but it will be more
convenient to use this way when building shards.
3 files changed