monitor: fixed rare crash

Fixed rare crash on monitor statistics request when dnet_ioserv are terminated.