The reason why you can't use containers/do nearly anything inside a locker, and the reason why borgs can stunbaton people from inside lockers/recharging stations
Created by: 9600bauds
https://github.com/d3athrow/vgstation13/blob/Bleeding-Edge/code/_onclick/click.dm#L99 This prevents you from doing damn near anything while your location is not a turf, e.g. in a closet This is presumably the ONLY thing keeping you from attacking people from inside lockers and whatnot, but it also prevents you from looking around your inventory, coming out prepared with something in hand etc
However, we can see that silicons lack this check: https://github.com/d3athrow/vgstation13/blob/Bleeding-Edge/code/_onclick/cyborg.dm#L9 This would prevent them from firing tasers pointblank at people standing right outside their recharging station and whatnot, but would also prevent them from accessing their inventory while inside a locker or such.