Update package-alist when deleting package.

This is only an issue in legacy package.el.