Fix issue in aptpkg and yumpkg modules related to holding/unholding packages

Fixing issue in the yumpkg and aptpkg modules related to holding & unholding packages where the pkgs was being zeroed out resulting in errors.  Also fixed the output when yum-versionlock is not installed and packages are set to be held or unheld. #13293