sched: allocate memory on the given socket id