Fixes to module yumpkg.py and state pkg.py to prevent exceptions when yum-plugin-versionlock is not installed and packages are attempted to be held.
Merge pull request #13304 from garethgreenaway/13293

Fixes to module yumpkg.py and state pkg.py