Add check that claimed accounts are not locked.
Repair claimed locked accounts.
Merge pull request #1971 from gittip/repair-locked

Repair claimed locked accounts and add self check.