The reason behind a lane closure which caused long rush-hour queues into Swindon has been revealed.