I always assumed that if you were the one doing the pinning, you merely retained the grappled condition...
Yeah, if you’re the one who is pinning, your grappled target gains pinned condition, and you retain the grappled condition, but the pinner loses their dex bonus. It’s specifically called out this way in the Combat Rules, but not the Conditions rules.