numa: fix NULL pointer access and memory leak in unregister_one_node()