tdb: Fix a C++ warning (cherry picked from samba commit be88a126ea50ea7e41583f402013c...