mlx5: Fix error flow in add_keys