You stated above that "By design in case a user has locked his/her account, the UI offers the option of resetting the user's password. "
In my experience when a user locks themselves out, you can't reset their password through the backend UI for security reasons. So for instance, if you click on Reset Password, the little yellow box doesn't appear with the randomized password.
Am I missing something? Is there another way? I have this exact scenario on my hands now...