Phase transition between quantum and classical regimes for the escape rate of a biaxial spin system