[PATCH] virthread: Make sure virOnce() returns -1 on error