Backport from 1.3 branch: clean up opened joysticks in SDL_JoystickQuit().