Dynamics of an antiferromagnetic skyrmion in a racetrack with a defect