In-network Contention Resolution for Disaggregated Memory