simplify pthread tsd key handling