Bunbury, Thomas, active 1778-1784, Lieutenant