Dubarry Philippe, Endocrinologue à Castres