[backend] check iswaiting when deciding to delay uploadbuild events