Avoid race between ueventloop and uevqloop