Mackenzie, Thomas, active 1794-1806, Admiral