Building with dchecks_always_on=true in release configuration seems to introduce flakiness because the TLS is double-freed. Amending the check seems to fix the flakiness.