Fix segfault during shutdown.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Take write locks in rpc_dplx_shutdown().

To avoid deadlock, callers must have removed ALL registrations
before calling svc_shutdown().

Signed-off-by: Matt Benjamin <matt@linuxbox.com>