Convert `unlock` to Cadence.

See #375.