[9.18] Fix an interfacemgr use-after-free error in zoneconf.c:isself()

Backport of !7962 (merged).

Closes #3765 (closed)

Merge request reports