Yes - locked, branded and bloody buggy! Once free or Orange firmware, phones are ready to rock and roll.
You could always look into getting the phone unlocked. Shouldn't be too expensive and if your friend really wants the phone that badly this would be the only option, unless of course they transfer to Orange and keep their number.