ns.c: convert to new idr api

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kdbus.c: convert to new idr api

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>