A Victorian courtroom has erupted after a man accused of murdering Hannah McGuire changed his plea to guilty midway through the trial.