malloc_ncpus(): fix Spc(s) mis-indentation to Tab(s)
malloc_ncpus() gets shorter
do { if () } while(0) can be reduced to if () else