guard against races on Truncate and DumpOut