[scheduler] Backport from branch 2.5:
Fix bug #14935 timesharing in container issue in
oar_sched_gantt_with_timesharing and
oar_sched_gantt_with_timesharing_and_fairsharing