Sir John Cunningham McLennan, Director of the Physics Laboratory, 1904-1932