image/gif: don't let the per-frame transparent index modify the global
palette.

Fixes issue 7993.

LGTM=r
R=r
CC=golang-codereviews, james.jdunne
https://codereview.appspot.com/138600043