I'm sure someone will have a more technical description as I'm not an engineer, but I seem to have some of the tendencies...
I assume you mean auto-lockers like a LockRight, Detroit, EZLocker, Aussie Locker, etc. I'll also assume you understand how an open differential functions when dividing the torque between 2 axles.
This is how I understand my LockRight; the Detroit is similar but it replaces the whole carrier.
The side gears on the axle shafts go away along with the spider gears. The pinion gear still turns the ring gear, which is attached to the carrier which has the pinion shaft (that the spider gears used to ride on) running through it. The pinion shaft drives two driver gears (one for each side), which mate to splined couplers on the ends of the axle shafts.
This picture
http://molmed.umassmed.edu/~kdb/locker/lock028.jpg shows the two driver gears in the middle of the carrier and the couplers toward the outside. You can also see the hole through the drivers that the pinion shaft will go through. Circled is a bias spring which puts tension on (1 of the 4) stop pins that align the drivers and keep the couplers engaged.
Under normal circumstances, the springs keep the drivers and couplers locked together so both wheels are driven with equal torque. **this is where the conjecture starts** The holes in the drivers that the 'stop pins' sit in are flared at one end allowing the pin to tilt such that if one of the couplers is rotated faster than it's driver gear by an outside force (being the outside tire in a turn), the spring tension that held the driver and coupler gears meshed is decreased, and the teeth separate a bit allowing that side to 'ratchet', simulating differentiation. The locker will only allow 1 side to ratchet at any given time because there is only enough room in the carrier for one side to separate.
Also, the 'ratcheting' only occurs in the driven direction, which I think is due to the fact that the stop pin holes are slotted away from perpendicular in just one direction. I wish I understood this a little better since it works just as well in reverse or under compression braking and I can't seem to wrap my brain around the whole deal.
So, the short answer is "it's magic".
