Adding a check for pending tranasctions to the yum module

Fixes #4649
Merge pull request #5727 from jimi-c/yum_transaction_check

Adding a check for pending tranasctions to the yum module