Update inventory when closing ghost-dupe-able inventory, to remove ghost items.