[sc-rpc-server] Fix panic while dropping the RPC runtime on start_ser… (#12847)