Fix queue_tick race