[PATCH 6.15 324/480] vdpa/mlx5: Fix needs_teardown flag calculation