A historian has said that questioning her is racist after her book on slavery was pulled from shelves because of inaccuracies.