Remove unnecessary cpu lock.
Remove unnecessary message type branch.