Yes, they are double nuts, one locks the other and they are used to set the pre-load on the bearing
You can release them with spanners shaped like hook wrenches, but with pins to fit the holes rather than squared off hooks. They are not difficult to make really. Test the pre-load on the bearing, one of which is a thrust bearing, before you release them so that you have a feel for how they were set beforehand.
Before I made such spanners, and you will be surprised at how often they are used on machinery, all in different sizes of course, I used a pair of water pump pliers when I had to move mine in a hurry. Being slim they are about the right size.
Regards Brian