Lock (something) up lock up (something)

To be assured of success.

The candidate has already locked up the nomination for the next election.