sqlite3: Vendor import of sqlite3 3.39.0
Changes at https://www.sqlite.org/releaselog/3_39_0.html.
Obtained from https://www.sqlite.org/2022/sqlite-autoconf-3390000.tar.gz
Merge commit '2380f7c9781e64d137f0712a8fb185dee648ed8c' into new_merge
(cherry picked from commit 70b56f4b92877578741e5aba2a72d6088cb13ecb)