BlackBerry maker hires law firm for restructuring