Online lock scheduling and disruption management