deadlock test for spin