mem: fix division by zero in no-NUMA mode