fix false ownership of stdio FILEs due to tid reuse