Added support for locking users. See issue #82