Senior lawyers have expressed dismay about the threat to free speech posed by Scotland’s proposed new hate crime law.