Use `assert` in `t/lock/purge.t.js`.

See #351.