Respect Yum's lock

We're seeing RPM DB corruption relatively frequently these days and have narrowed it down to the yumhelper not respecting Yum's lock. Let's make it respect the lock. Instead of copying the wait loop around the lock, fall back to shell_out and make yum do the right thing.