Curvature of the QCD phase transition line in a finite volume