STOCK PURCHASE AND TRANSACTION AGREEMENT by and between CM FINANCE INC and INVESTCORP BDC HOLDINGS LIMITED dated as of June 26, 2019