[dm-cache] Change nr_dirty to be an atomic_t.

People were seeing under runs due to a race on increment/decrement of
this variable.