History-Aware Planning for Risk-free Autonomous Navigation on Unknown Uneven Terrain