tdb: fix backwards check on HAVE_PAGESIZE