Implement `unlock`.

Closes #10.