BlackBerry wins dismissal of U.S. shareholder lawsuit