allow qemu_thread_create to return with error