Implement Cursor.destroy and release memory used by native cursors