xfrm: fix a data-race in xfrm_gen_index()