Thai courts hand jail terms to lawmaker, musician for royal insults