Fix compilation failed on SQLITE_OMIT_WAL=1.