Stewart, Thomas Dilnot, Lieutenant RN