The social media company appeared to be on solid legal ground when it sued the Tesla CEO to force him to complete the merger. But allegations by Twitter's ex-security chief may help Musk's case.