Fix __wait_on_atomic_t() to call the action func if the counter != 0