libmultipath: fix race in stop_io_err_stat_thread