SDL: Call IOHIDDeviceClose() if needed in hid_close() on macOS (8b7a0)

https://github.com/libsdl-org/SDL/commit/8b7a088efc1ebf5c2e53ab40fdff48e6c05f0d82

[Couldn't obtain the patch due to network issues; please check the above link instead.]