Mildmay, John, active 1643-1677, Captain RN