Find out if account is locked using terminal
You can use pwpolicy getaccountpolicies -u usershortname - if the account is disabled it will return "Error: Credential verification failed because account is disabled."

For example:

[root@macOS] / #pwpolicy disableuser -u admin
Disabling account for user &lt;admin&gt;
[root@macOS] / #pwpolicy getaccountpolicies -u admin
Getting account policies for user &lt;admin&gt;
Error: Credential verification failed because account is disabled.
[root@macOS] / #pwpolicy enableuser -u admin
Enabling account for user &lt;admin&gt;
[root@macOS] / #pwpolicy getaccountpolicies -u admin
Getting account policies for user &lt;admin&gt;
[root@macOS] / #