A court has sentenced ousted former leader Bashar al-Assad and others to death in absentia.