mlxsw: core: Fix devlink unregister flow