python3: Link against keg_only sqlite

Fixes #17765.

Closes #17788.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>