Add callback to `Cursor.unlock`.

See #364.