Sir John Goodricke, 5th Baronet — politician