svcrpc: fix rpc server shutdown races