most sockets wont bite that when you hammer them on because the lock is hardened.
I would take a cutoff tool and grind 4-6 opposing flat spots in the lock… basically making it like a nut… then you can hammer on a socket and it will bite and turn no problem
welding a nut or some shit to it is also a good option