minor optimization to pthread_spin_trylock