Time-dependent occupation numbers in reduced-density-matrix functional theory: Application to an interacting Landau-Zener model