spinlock: reimplement with atomic one-way barrier