Senior policeman with links to Thai royal family jailed