Add lock user function for admins

@houndci @cgruppioni @georgetmayorga

Can this be null?