vppinfra: refactor clib_spinlock_t to use compare and swap