If you can get a socket on the difficult to reach nut then you may have a couple options.
1) Purchase a socket that fits the nut but with a hex head also. insert socket, install wrench over hex head, turn other nut against wrench on hex head of socket.
2) drill a hole through the socket to fit a rod. Insert socket on nut, put rod through hole in socket via the small oval access hole in the frame, turn other nut against the rod that now binds against the hole in the frame.
3) Same socket, but maybe you don't have enough socket length to drill a through hole.
cut a groove in the top of the socket and weld a rod on there to bind against the frame.
4) Grind socket with two flats, leaving as much material as possible. Grind flats to fit an open end wrench, vice grip, adjustable wrench. Insert socket, install wrench, turn other nut against the wrench.