gre: Fix use after free in netns compatibility layer.