score: Unify pthread and gxx_wrapper once and move to score.