Defer yumlock creation until runtime.

At import time, the tg.config hasn't yet been populated, so our config
value has no effect.

Tested in staging.