Yeah, all trades just get reversed. If B tried to do an item recovery, the GMs would probably just explain that the item in question had actually belonged to somebody else, etc, etc.
The fact that all those trades need to get reversed is one of the several reasons why item recovery tickets can take quite a long time.