Canberra's Rebecca McConnell claimed a bronze medal after a stunning performance at the Mountain Bike World Championships.