[build] fix bus error while execute make -jN (N>1)