tsan: add test for second_deadlock_stack flag