Assert all locks are free on `Cursor.unlock`.

See #262.