Add atomic_inc()/atomic_dec(), and use them to replace gc_running_mutex