berkeley-db: Avoid failure of HAVE_DB_STAT_ACCEPT_TXN test in configure
The last argument for db_stat is of type uint32_t, and compilers may not allow passing NULL in its place. This causes the check to fail in some cases where HAVE_DB_STAT_ACCEPT_TXN is expected to be defined, leading to build failures later.