threads: remove unused fields in headers