Fix build without SMP.
MFC after: 1 month
(cherry picked from commit 8db1669959ceebdc60a7d402830663953bf32818)