You need to add $x_0 v_0$ to your social welfare, where $v_0$ is the value the seller assigns to keeping the good and $x_0=1$ in that case. Then, the efficient (social-welfare-maximizing) allocation is that the highest-value buyer gets the good if her value is above $v_0$ - otherwise it is efficient that the seller keeps the good.
Similarly, in a procurement auction, we have one buyer who values the good to be procured at $v_0$ and $n$ sellers who can produce the good at private cost $c_i$. Social welfare is then
$$\sum_{i=1}^n x_i (v_0 - c_i),$$
and, hence, it is efficient to let the lowest-cost firm produce the good given its cost is below $v_0$ - otherwise it is efficient that the good is not produced.
For sufficiently high values $v_0$, you can also define it as $\sum_{i=1}^n x_i (- c_i).$