Update threads_safe_lock_free_queue.c

Use CAS to implement lock-free based queue operations