remove keyring from global linked list when freeing