for risc-v, add __spin_lock and __spin_unlock