xfrm: generalize xdo_dev_state_update_curlft to allow statistics update