KVM: x86: Improve thread safety in pit