gdi32: Avoid accessing the internal palette object from dib.c.