Implement run_once() without atomic_t (XCC)