Uncertainty-Aware Testing-Time Optimization for 3D Human Pose Estimation