[PATCH] qemu: remove use of gettid() syscall