Nilpotent probability of compact groups