A former Metropolitan Police doctor has pleaded not guilty to stalking Labour MP Dame Emily Thornberry over a period of almost two years.