python3: Link against keg_only sqlite

Fixes #17765

Tested and works with superenv and --env=std.