fix BFS compiling with CONFIG_SMP=n