Another bothersome thing (or two) about your scenario is that the guns, or at least some of them, might belong to the person who obtained the restraining order, therefore presumably needs protection. And we all know that the police don't provide personal protection (unless you're an elected official). So their actions would make the situation worse.
Or in the case of a raid (as I read about recently done by my local PD) on the whole house, they were crowing about taking 15 firearms, ONE of which they carefully pointed out was stolen. When I asked (on their FB page) "what about the other 14" my comment was deleted. So they don't like people pointing out that perhaps they stole property that wasn't illegally posessed, or asking if the guns were owned by someone not the person they arrested. And since they posted the address of the house they raided, their enemies (or 'business' competitors) could attack.
The only times I've had a pistol stolen by police, once was after an illegal stop & illegal arrest. It was in my car in a closed (but not locked) case. That one the city settled rather than go to trial.
The other was in my home after an illegal entry & illegal search, & they broke the zipper pull to get into the locked case, then stole the pistol. That one's not yet in court... working on it. (And they left the other pistol sitting on my bedside table!)
So I didn't have opportunity to transfer my property to anyone in either case.
But in both, the police broke laws. Not much comfort at the time, but somewhere down the road it will work in my favor.