Characterization of priors under which Bayesian and frequentist Barlett corrections are equivalent in the multiparameter case