when creating an interface, set magic before linking
set the magic number in a newly-created interface object before appending it to mgr->interfaces in order to prevent a possible assertion.
Applied to v9_16
as part of !6723 (merged)
Edited by Michał Kępień