[tsan] add deadlock detector tests for pthread_spin_lock