[PATCH 6.16 445/627] vdpa/mlx5: Fix needs_teardown flag calculation