An Egyptian court has sentenced ousted President Mohammed Morsi to death related to a 2011 prison break.