Fix yum pkg holding when doing version pinning with "pkgs" arg

Resolves #18468
Merge pull request #18568 from terminalmage/issue18468

Fix yum pkg holding when doing version pinning with "pkgs" arg