Make sure CADisplayLink's action dispatcher isn't freed too early. Fixes #10315.