tdb: If tdb_parse_record does not find a record, return -1 instead of 0