Fixed a bug locking go routine when cpu number is 1.