The assumption, however, is that the owner unlocks the phone before giving it for repair. Unless, of course, the very reason for repair is that the phone is locked and the owner does not remember the code or has never set the thumb lock in the first place.
My reading of what Peter was trying to say is that Apple is pissed off the phone is at a non-Apple shop and disables it as a punishment. Then again, I might be wrong.