Phase transitions in QCD as tunneling through singular barriers