drop the `is_locked` column
fix tests
remove obsolete comment
removed unused variable
Merge pull request #3020 from gratipay/drop-is_locked

Drop `is_locked` entirely