tdb: always set tdb->tracefd to -1 to be safe on goto fail