A U.S. court has closed the door on hostile work environment and wage discrimination claims made by a former BlackBerry Ltd.