Twitter employees expressed deep frustration and anguish on Friday after billionaire entrepreneur Elon Musk declared he is prepared to walk out on a deal to buy the social media company in what is being seen as the start of months of legal wrangling.