[kcms/keys] Don't remove items from list while iterating
removeComponent removes the item from m_components, so we must not do that while iterating over m_components
Instead make a pass over the list, remember the to-be-deleted components, delete them, then process the rest