Pakistan captain Misbah-ul-Haq dedicated the stunning third-Test victory over Sri Lanka to departing coach Dav Whatmore.