A Hong Kong court on Thursday sentenced the mastermind of a failed bomb plot during anti-government protests in December 2019 to nearly 24 years in jail.