From Apple’s side, this situation is indistinguishable from the phone having been stolen.
P.S. Although maybe there’s a way to learn to what account a part is locked, and write to them ‘hey bro, could you please unlock this phone you threw away’. Then again, the repair shop also can’t know that the phone wasn’t stolen.
