Okay i see now. Okay so when you defeated someone who has a collar on then click punish you will have the option to put them in the stocks.
An by close enough to them I meant is the defeated inmate/collared person within range of you taking them to the stocks. As in is the button click able.