Stride scheduling draft 5, with locks and shit

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>