sqlite3: Vendor import of sqlite3 3.38.5
Changes at https://www.sqlite.org/releaselog/3_38_5.html.
Obtained from https://www.sqlite.org/2022/sqlite-autoconf-3380500.tar.gz.
Merge commit 'b562e59e27efbea397bdc8782dfceaa3c0e23542'
(cherry picked from commit 4fe1295c964fa712dd763e3852187da8724ef79a)