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

Resolves #18468