Sunderland have agreed a loan deal to sign Kader Mangane, with the move set to go through once the Senegal international has passed a medical.