The sentencing of Hong Kong’s onetime media magnate Jimmy Lai is raising concerns from foreign governments and rights groups.