Fixbug: MacOS have not spin_lock