The UN's humanitarian chief Mark Lowcock decision to resign puts the spotlight on how some top jobs at the UN are awarded.