tdb2: fix pread/pwrite error handling in fill and tdb_write.