Novak Djokovic overcame Juan Martin del Potro to claim back-to-back Shanghai Masters titles and stretch his unbeaten run in China to 20 matches.