[PATCH] list: introduce list_replace() helper