Statistical ensembles and logarithmic corrections to black hole entropy