Fix bugs in spin_trylock_wr():