replmd: rework replmd_modify_la_add to merge efficiently