As in a guaranteed thing. For example, "Bill has twice the sales of anyone else on the floor so the sales competition is pretty well sewn up."
I've tried to think of various metaphors it could be employing but the only thing that seems to make sense is if it came from an older related saying where the literal meaning was more obvious.