bonding: Fix use after free in unregister path