SGM: A Statistical Godel Machine for Risk-Controlled Recursive Self-Modification