How sleight-of-hand—and obsessive-compulsive disorder—helped the guitarist shake 30 years of addiction.