I intended to compare notes with a friend, but unfortunately he couldn’t spare me even one minute.-- Formally correct, unless your friend is female.
I intended to compare notes with a friend, but unfortunately they couldn’t spare me even one minute.-- Informally correct, but it seems odd that you do not know the *** of your friend.