Fix a crash during network changes, because of recursive iterations over linphone_core_get_accounts_list().