Add handling for externally invoked transactional updates
It is possible a libdnf consumer to be invoked from within an
existing transactional update environment (such as with "tukit execute"),
so we should correctly handle this case instead of having it fail.