oncevery: fix race condition