The following __wt_txn_global structure member is not used anywhere in the code.
WT_SPINLOCK id_lock;
Remove the dead code.