new API: spinlock_destroy()
replace pthread_spinlock_t into struct spinlock {}