N-Acetyl Cysteine seems to be often effective in treating trichotillomania. If so, the condition has a biochemical basis, not a psychological one, and looking for the motivation behind the behaviour won't really help.