Fixes to module yumpkg.py and state pkg.py

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. #13293