kgdb: use atomic_inc and atomic_dec instead of atomic_set