ncm-spma: yum-based spma retry transaction with certain types of error

ncm-spma: Improve the working of yum-based spma in certain error conditions by retrying the transaction