[Issue 10290] Combination of syncrepl+rwm+syncprov frees the wrong modlist