Emulate SDL_Surface refcounting more closely