createrepo_c: Do buffer dump after error cleanup to prevent deadlock (RhBug: 975331).