Pairing phase transition and two-nucleon transfer reactions in rotating nuclei