Older River was in the spacesuit in 2011, and the little girl was in it in 1969. I suppose the Silents were developing it in 1969 and keeping her in the orphanage, but they were disrupted by the Doctor's actions later in the two-parter so somehow they lost Melody, and she wanders off by herself before dying and regenerating. I'm a bit confused by how much control she had over herself after that - they must have gotten to her again, as by the time we saw her as Mels she was pretty intent on killing the Doctor, but when she was the little girl she was terrified of the spacesuit and begged for help to get away.