mem: fix allocation failure on non-NUMA kernel