[FIX] fixed compare_exchange_weak bug