Bug 1078017 - Deregister track callbacks before unlinking tracks. r=jesup,jib a=lmandel