Spigot's patch: Properly close inventories when unloading chunks.

For fix dupes with unloaded inventories.