Modify of spinner to spinlock