Socket can be met after completing Alex's "portal panties" quest (which can be skipped btw!) and returning to his corner. You can then buy an upgrade for your cell and enslave inmates that you beat up.
If you want to enslave guards, engineers, or nurses, you have to beat Avy.