locking,qspinlock: Fix spin_is_locked() and spin_unlock_wait()