Fix variable name for AC_CHECK_PROG

SQLITE3 ->
have_sqlite3

"SQLITE3" is already used for detecting libsqlite3.