use just `push` instead of using `package--update-selected-packages`
Note
- The previous function expanded `custom-save-variable`, which
saved custom.el sequentially, causing serious performance
degradation in some cases.
- Since `package-selected-packages` was introduced in Emacs-25.1,
we will consider the case where this variable is not declared.
If it is not declared, just `setq` it as a new variable. (leaf-safe-push)
- Remove progn from the second `condition-case`, since
it can accept multiple S-expressions in the error arm.
Description
Checklist