Uniqueness transition in noisy phase retrieval