Fix CallbackQueue segv, safe removal while foreach'ing