gl: release device reference for cached surfaces
gl: release device on mask surface for glyph
shadow: unreference cached shadow surfaces