test pthread_spin_lock